I'm trying to dynamically retrieve images stored in an Oracle database (8.1.6) using perl cgi scripts by setting the content type.
main.hmtl
---------
..
..
<img src="image.cgi">
..
..
The image won't display, but if I have the script, image.cgi, write the contents of the blob field to disk I can view the newly created file. The "Content-type: image/jpeg" is being set by the returning cgi script. Is it possible to return the image directly back to the browser without having to store it on the local file system?
main.hmtl
---------
..
..
<img src="image.cgi">
..
..
The image won't display, but if I have the script, image.cgi, write the contents of the blob field to disk I can view the newly created file. The "Content-type: image/jpeg" is being set by the returning cgi script. Is it possible to return the image directly back to the browser without having to store it on the local file system?