This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
Don't get me started about those stupid light bulbs.
 
subject: Uploading an image