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.