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 put image into database Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "put image into database" Watch "put image into database" New topic
Author

put image into database

senthil raja
Greenhorn

Joined: Jul 11, 2001
Posts: 17
Hi.
how can i input image into MySQL and also retrieve it through jsp ?
i need to store one full image of type ".gif" or ."jpg"
and not url of the image..........
please can anyone help me.
Regards
Senthil
Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hi,
To store an image into the SQl database u can do the following
1) Convert the image into byte[] (byte array)
2)Store the byte[] into the sql database. The field type is 'binary'
..Regards
..saj
Sandeep Jain
Ranch Hand

Joined: Oct 25, 2000
Posts: 124
Hello ,
Well , I dont have much experience but out of the projects that I have done ,we dont store the image itself rather than we store the pasth of the image .
------------------
Try and Try Till u succeed
Sandeep Jain


Try and Try Till u succeed<br /> <br />Sandeep Jain
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: put image into database
 
Similar Threads
Internet Porn is too available...
Downloading an Image from servlet
Create Image object
inserting image
BASE64