I need to load images from a secured network drive into an HTML document. I understand that because the network drive is not part of the webroot, this is not an option and is considered a security feature to protect the files that live on the network drive and server.
I have done some research and found these solutions:
https://stackoverflow.com/a/46003218/16511184
https://www.tek-tips.com/viewthread.cfm?qid=935379
These solutions both mention the use of server-side code to access images, as the server should have permission to access files on the network drive. My question is, how do I deliver the images to the HTML document, and in ColdFusion?
My naiive guess was to just grab the image name from a query made on the server, but just slotting the name into the img tag's src attribute creates the original issue of client trying to access an image on the network drive they don't have permission to view.