Confirm the behavior of image download from Search API Response

Harsha Vardhini R April 3, 2024

I am trying to apply the content from the confluence to my application by getting body.view field from Search API. And the image sources returned on the content are either relative or absolute url. 

I need to download these images on my application to convert as base64.

The image with absolute url needs token to download. Meanwhile the one with relative url throws error upon giving token. I have constructed the url by appending baseUrl and relativeUrl. But gets downloaded upon absence of auth token

Is this expected and can I go ahead with the above mentioned methodology? If this is not recommended please let me know the workaround. 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events