Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Streaming Dynamic Image

Reply
Thread Tools

Streaming Dynamic Image

 
 
Tscheihpih
Guest
Posts: n/a
 
      02-18-2004
Hello

Mozilla has no problem with this code and streams the image correctly
back to the client. But with my IE 5.0, the images cannot be
displayed. What's wrong with this code?

OutputStream out = response.getOutputStream();
response.setContentType( "image/jpg" );
BufferedImage outimage = new BufferedImage(
500,500,BufferedImage.TYPE_INT_RGB);
Graphics2D g2d = outimage.createGraphics();
g2d.setBackground(Color.WHITE);
g2d.drawLine(1,1,100,100);
g2d.dispose();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
encoder.encode(outimage);
 
Reply With Quote
 
 
 
 
Tscheihpih
Guest
Posts: n/a
 
      02-18-2004
mhh? heeeelp! ;D
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Image after Streaming Stephen ASP .Net 0 11-29-2004 04:13 PM
dynamic streaming quicktime qtl Brian ASP .Net 1 01-25-2004 10:37 PM
Streaming Image data to an image viewer Jerry J ASP .Net 0 07-18-2003 01:33 PM
Image Streaming Steffen Brodowski Python 9 07-11-2003 06:20 AM



Advertisments