Results 1 to 2 of 2
  1. #1
    daisy is offline Member
    Join Date
    Mar 2011
    Posts
    12
    Rep Power
    0

    Default how retrieve and display image from folder

    hi...i just upload image using jsp.i saved the path file and create data_id for the image in database and write the upload image into directory.my problem is i don't
    know how to display/view that image back when i search it by data_id

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    9

    Default Re: how retrieve and display image from folder

    Display/view how? Assuming this is a webapp, you can write a servlet that sets its header to notify the client it is an image (using the Content-Type parameter), then writes out the appropriate file contents for the image.

    Edit: And please do NOT double post
    http://www.java-forums.org/javaserve...splay-jsp.html

Similar Threads

  1. Which folder do you put image files in
    By ikkyu2 in forum New To Java
    Replies: 1
    Last Post: 10-24-2011, 12:26 AM
  2. retrieve file containg image from database
    By rajeshwari_ib in forum Advanced Java
    Replies: 5
    Last Post: 12-15-2009, 10:10 AM
  3. Retrieve Image From Hard Disk
    By sayan751 in forum AWT / Swing
    Replies: 3
    Last Post: 02-20-2009, 04:29 PM
  4. How to store/retrieve PNG image in/from RMS
    By jason-nexFIT-mobileXware in forum CLDC and MIDP
    Replies: 0
    Last Post: 09-10-2008, 04:01 AM
  5. Random Image on Refresh (FROM Folder not set number)
    By QuinnMal in forum Java Servlet
    Replies: 1
    Last Post: 07-06-2007, 07:27 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
  •