Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 2/3/2008; 9:14:39 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

October 2004
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Sep   Nov

Get Firefox!

Friday, October 01, 2004

Patrick wrote in to ask:

How do you display a jpeg image stored in a blob field in the database onto a jsp?

If you can use the ORDSYS.ORDIMAGE type in the database, then we support it natively through our OrdImageDomain at the business components level.

Otherwise, you'd have to craft your own solution for serving up the BLOB data in reply to the browser's request to fetch the URL that is the source of the <img> tag. With ORDIMAGE, we supply that infrastructure for you. Without it, you need to write your own image-serving-servlet that does it, and generate <img src="..."> tags with a src attribute value that goes through this servlet to fetch the jpeg data with the appropriate mime type set.
 
The "Upload Text File and Image Example" in my Not Yet Documented Samples page shows a simple example of OrdImageDomain and its text-file companion OrdDocDomain in use.

11:21:09 AM    



© Copyright 2008 Steve Muench.