Forum Stats

  • 3,872,942 Users
  • 2,266,490 Discussions
  • 7,911,391 Comments

Discussions

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

User_DRRPB
User_DRRPB Member Posts: 2 Red 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_;