inserting image in to mysql

hi i am developing the web application in which i want to put record of in which there is the imageand i dont know hove to insrt image in database using jsp or servletif anyone have anser plz .
[229 byte] By [sandeepkhandarea] at [2007-11-27 6:48:31]
# 1
Please google for the 3,642,371 times this question has previously been asked and answered.
cotton.ma at 2007-7-12 18:21:55 > top of Java-index,Java Essentials,Java Programming...
# 2
You can convert the image to BLOB (Binary large object ) and store in the database.Google for BLOB.
achyuthba at 2007-7-12 18:21:55 > top of Java-index,Java Essentials,Java Programming...
# 3
Following your blob instruction, I also have problems inserting images to MySQL. Those blobs have good examples but they assume PHP. What about JSP? Anyone? PS. Sorry for posting throug someone else's thread
Jamwaa at 2007-7-12 18:21:55 > top of Java-index,Java Essentials,Java Programming...
# 4
> 3,642,371wow, he/she is counting exactly
j_shadinataa at 2007-7-12 18:21:55 > top of Java-index,Java Essentials,Java Programming...
# 5

> Following your blob instruction, I also have problems inserting

> images to MySQL. Those blobs have good examples but they

> assume PHP. What about JSP? Anyone? PS. Sorry for posting throug

> someone else's thread

i usually use only byte array to store data like image (in jpeg, the file size is not so big).

j_shadinataa at 2007-7-12 18:21:55 > top of Java-index,Java Essentials,Java Programming...
# 6

> > Following your blob instruction, I also have

> problems inserting

> > images to MySQL. Those blobs have good examples but

> they

> > assume PHP. What about JSP? Anyone? PS. Sorry for

> posting throug

> > someone else's thread

>

> i usually use only byte array to store data like

> image (in jpeg, the file size is not so big).

The database is set up. PHP does the job for me. What about JSP? That is the question. Not how big an array you may use :-)

Jamwaa at 2007-7-12 18:21:55 > top of Java-index,Java Essentials,Java Programming...
# 7
> Following your blob instruction, I also have> problems inserting > images to MySQLi thought you trying to inserting image data which i'm using prepareStatement.setBytes(i, imageData);
j_shadinataa at 2007-7-12 18:21:55 > top of Java-index,Java Essentials,Java Programming...
# 8

> Following your blob instruction, I also have problems

> inserting images to MySQL. Those blobs have good

> examples but they assume PHP. What about JSP? Anyone?

> PS. Sorry for posting throug someone else's thread

What problem, I didnt understand.

Image will be same for both php and jsp, right?

achyuthba at 2007-7-12 18:21:55 > top of Java-index,Java Essentials,Java Programming...
# 9
PHP and JSP codes are different
Jamwaa at 2007-7-12 18:21:55 > top of Java-index,Java Essentials,Java Programming...
# 10
BLOB is the property of mySql and not PHP or JSP.Then why are you bothered about PHP and JSP.
achyuthba at 2007-7-12 18:21:55 > top of Java-index,Java Essentials,Java Programming...