Goal :- Send list of images and pdf from backend and display it in frontend.
What I tried :- I have created a servlet which sends the images and pdf in base64 format to frontend and in frontend i am using the base64 images as inline images to display it to customers.
Is there a better approach ? Because since base64 data is large the response payload is large. It seems this is slowing the website.
Is converting the base64 data to Blob in backend and sending it to frontend a better approach?