This content has been marked as final. Show 2 replies
There are two possible solutions:
1) the imanges you want to show are under the web root of you application. in this case you can use the image tag and use EL to build the right path to show
2) the image files are somewhere else. In this case you can't use the image tag in this way. You can however adopt the wokrflow outlined in my blog http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/ (which you already know). Here you change the way the data is read (in the sample it's read from the DB) in a way that you read the data from the file. In the servlet you have access to the file path and you only need to add the empId and '.jpg' to get the full name. The you open the file and stream in to the outpoutstream. There is no need to use a BlobDomain in this case. This is done in the sample just because the images are read from the db.