Results 1 to 4 of 4
  1. #1
    nn12 is offline Member
    Join Date
    Sep 2008
    Posts
    85
    Rep Power
    0

    Default wrinting image to response

    Hello everybody,

    I have a image in png format(that gets generated from my code). How to write this image to response object?

    Thanks

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Save it and write an image tag that points to it.

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,751
    Rep Power
    19

    Default

    Stream it to the response output stream.
    What stream you use to read the image is entirely dependent on where the image is coming from.

  4. #4
    nn12 is offline Member
    Join Date
    Sep 2008
    Posts
    85
    Rep Power
    0

Similar Threads

  1. response.setContentType
    By bbq in forum Java Servlet
    Replies: 3
    Last Post: 01-17-2012, 05:37 PM
  2. problem wrinting into xml file...
    By bonjovi4u in forum XML
    Replies: 5
    Last Post: 07-10-2010, 01:52 PM
  3. Response code from URL
    By sherlock in forum New To Java
    Replies: 1
    Last Post: 07-01-2010, 09:52 PM
  4. MDB/JMS Request/Response
    By rkands in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 03-04-2010, 02:38 PM
  5. Velocity / XML response
    By sabatier in forum XML
    Replies: 0
    Last Post: 07-24-2007, 01:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •