Forum Stats

  • 3,837,271 Users
  • 2,262,245 Discussions
  • 7,900,244 Comments

Discussions

How do I get an absolute URL for a blob link using Groovy?

User_DRRPB
User_DRRPB Member Posts: 1 Green Ribbon

I have a requirement where I need the full absolute URL for an image blob link. I can get the image blob vanity URL, but it is relative. How would I include the root domain?


Map imageAssetWithBlob = newAssetReader()

.forAsset(AssetId)

.selectAll(true)

.includeLinks(true)

.addBlobLinkInfo(blobLink)

.includeLinksForBlobs(true)

.read();

return imageAssetWithBlob._bloblink_;