File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using ImageFileOutputStream

 
Ola Daniel
Ranch Hand
Posts: 105
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic