File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes How Upload Image to DataBase 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 » Servlets
Bookmark "How Upload Image to DataBase " Watch "How Upload Image to DataBase " New topic
Author

How Upload Image to DataBase

Mohammad Ali
Greenhorn

Joined: Jan 03, 2006
Posts: 11
Please guide me how to upload image in a table in a database.
please give me code how to upload an image file in a table in a Mysql database.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41073
    
  43
Where is the image coming from? You need to convert it into a byte[] array, which you then store in a BLOB field.


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

"Mohammad Ali",

You have already been asked on a previous occasion to adjust your display name to match the JavaRanch Naming Policy. Please adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

bear
JavaRanch Sheriff
[ February 12, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
payal agrawal
Ranch Hand

Joined: Oct 11, 2005
Posts: 44
Look at the URL below:

How to store/retrieve image to/from SQLServer
http://www.java-tips.org/content/view/203/29/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How Upload Image to DataBase
 
Similar Threads
How to display image in JTable which is stored in database.
image uploading in Jsp
Storing images
Upload image in database
how to get this project