• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using ImageFileOutputStream  RSS feed

Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display Images from a database into a JSP page. Now i am using the following code:

I succesfully used this code to retrieve the image from the DB into a file. then use the file to display on my JSP. The problem is this works fine with MSSQL database. But with Oracle the files get written, but cannot be viewed. I think there is some kind of corruption of the image when its transfered from the DB. I am attempting to use: javax.imageio.stream.FileImageOutputStream instead of java.io.FileOutputStream which I am using but i donot know how to use it. Can anyone please let me know hopw to use this instead or direct me to where i can get a sample code. Thanks in advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!