Helpful but need an example
Joyce Fowler, February 19, 2003 - 4:22 pm UTC
I have PL/SQL procedures to create a table with a BLOB field and a procedure to load images into that table. But I am having trouble displaying those images in a Browser.
You said "You want to generate HTML that references via the IMG tag the jpg." How to I do this in HTML where an image is called from the database and displayed in a Browser? Do I use a procedure call???? There is <IMG SRC=<procedure call>"> Do you have any example of using this?
Thanks,
February 19, 2003 - 4:29 pm UTC
Moving code to 10g
Les Davidner, July 08, 2005 - 5:46 pm UTC
Hi Tom,
It was I who had originally got your kind assistance with displaying an image on a web page via this question along with a few others. Your answer here was what made it all seem to make sense. This works perfectly in everything form 8.1.7. to 9.2.0.6.0. as you can see by my demo page. Feel free to look around. : </code>
http://68.145.41.85/pls/blobdemo/blobman.blobmaint.home <code>which is currently 9.2.0.4.0.
Every image that goes into the page is stored in the database, as well as all the other blob stuff. Totally awesome. I wanted to port my code to 10g. After doing this, none of the images show up. All the pages work, except the images are shown as broken links. I successfully add a new image (I am guessing it is successful because I display the size and it seems correct), and it is displayed as a broken image. I add a text file however, and I can get it back on my web page. I did not make any code changes and everything compiled without any warnings or errors, I actually used the locked plb file from 9.2.0.4.0 for this. I am at a loss for a reason as to why this is happening. Is there any chance you may know what I may have missed or did not configure correctly.
Many thanks in advance Tom.
Les Davidner
Moving code to 10g
Les Davidner, July 10, 2005 - 4:00 pm UTC
Hi Tom,
Character set was in fact the issue. It seems that this was in the DAD:
PlsqlNLSLanguage AMERICAN_AMERICA.US7ASCII
Without it all seems well.
Many thanks for your kind and prompt assistance with this.