This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Uploading an image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Uploading an image" Watch "Uploading an image" New topic
Author

Uploading an image

vijaya soft
Greenhorn

Joined: Dec 29, 2002
Posts: 12
Hi!
How should i upload and download an image from the server to jsp page.The backend is sqlserver7.0.
Regards.
Vijaya.


vijayam
Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
well in that case...
you need not store the image in DB...but you can just store the path at which you store the image & recall it from there using <img src...> tag...
hth
MB


Malhar Barai
SOA & Java Book
vijaya soft
Greenhorn

Joined: Dec 29, 2002
Posts: 12
Hi!
I would like to upload the image into the server in the sense the database.How to upload and how to download.As i know ,using getbinarystream or bytearraystream we can download.But i'm unable to do.Could u please give me a small snippet.
Regards.
Vijaya.
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Originally posted by vijaya soft:
Hi!
I would like to upload the image into the server in the sense the database.How to upload and how to download.As i know ,using getbinarystream or bytearraystream we can download.But i'm unable to do.Could u please give me a small snippet.
Regards.
Vijaya.

Have you checked at the Oreilly classes, by jason hunter?
I personally use jspsmartupload to upload files to my server. have a look at it...
hope it helps..


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Uploading an image
 
Similar Threads
Getting rid of Java Icon on the upper left hand corner
Easy one
Unsupported Color Conversion Request
Loading image file
converting png to tiff and character recognition with tesseract