I retrieve invoices through an external API and I synced these to my application. I do not store the files in the public folder since these are invoices belonging to specific users.
I am struggling to display this images or pdf to the user in a front end component.
I did get a functioning download button using a route but I do not understand how I can display an image if its path is not accessible.
Thanks for your help.
I should have said that I am not using file since I am syncing the images/pdf from an external API for which I need to store quite a few info. I managed to get it working by