• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem Sending Tiff Image in Servlet response  RSS feed

 
Sam Adams
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helllo,
I am getting a Tiff image byte array and I am sending it to the browser(IE 6) by setting the mime type to tiff but I am not able to view the image
in the browser.
This is the sample code,
response.setContentType("image/tiff");
byte b[]= with image bytes;
ServletOutputStream out = null;
out = response.getOutputStream();
out.write(b);
out.flush();
out.close();

Can somebody help me with this. I am using websphere app server and eclipse
IDE. I tried downloading tiff image IE plugins but that too did not
work out. So please give me some solution. Thanks in advance.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the TIFF image viewer in IE is not working, I'd try to fix that before trying to debug the image download. Otherwise you'll have no way to verify your code. It way be working already!

Dave
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!