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.
11:21:09 AM
|