Forums Register Login

Attach Image in JSP

+Pie Number of slices to send: Send
Anyone can help me to attach image in a JSP page.
+Pie Number of slices to send: Send
What do you mean by "attach"? Generally, image are shown in HTML pages by using the "<img src="something.jpg">" tag.
+Pie Number of slices to send: Send
i mean by attach is "uploading image" in SQLServer using JSP. Can please someone give me any useful link.
Thanks
+Pie Number of slices to send: Send
You can't really use JSPs for file uploads; you'll need to use a servlet instead. See http://faq.javaranch.com/java/FileUpload for some discussion.

As to storing images in a DB -which is not a good idea in my opinion; why not store them as files?- you could use an attribute of type BLOB.
[ October 14, 2008: Message edited by: Ulf Dittmer ]
get schwifty. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1348 times.
Similar Threads
how to delete multiple browse
Eclipse: JSP page has no errors, still eclipse complains
soap mulitple image attachements.
logging manager cannot be resolved
Different(Efficient) way of handling big file of getters and setters(javaBean) in java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:00:00.