Streaming Dynamic Image

Discussion in 'Java' started by Tscheihpih, Feb 18, 2004.

  1. Tscheihpih

    Tscheihpih Guest

    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);
    Tscheihpih, Feb 18, 2004
    #1
    1. Advertising

  2. Tscheihpih

    Tscheihpih Guest

    mhh? heeeelp! ;D
    Tscheihpih, Feb 18, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stephen

    Displaying Image after Streaming

    Stephen, Nov 29, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    446
    Stephen
    Nov 29, 2004
  2. Jerry J
    Replies:
    0
    Views:
    542
    Jerry J
    Jul 18, 2003
  3. Brian

    dynamic streaming quicktime qtl

    Brian, Jan 25, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,436
    Brian
    Jan 25, 2004
  4. Steffen Brodowski

    Image Streaming

    Steffen Brodowski, Jul 8, 2003, in forum: Python
    Replies:
    9
    Views:
    419
    Steffen Brodowski
    Jul 11, 2003
  5. Waverider
    Replies:
    1
    Views:
    191
    JuanDG
    Sep 21, 2004
Loading...

Share This Page