aspose file tools*
The moose likes JDBC and the fly likes Insert jpeg files in the database column Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Insert jpeg files in the database column" Watch "Insert jpeg files in the database column" New topic
Author

Insert jpeg files in the database column

Boon Subra
Ranch Hand

Joined: Jul 18, 2001
Posts: 69
Could you pl. suggest me how to insert an image in a column.From which I can fetch the image in the jsp page with the query.
thanks.
Abhilash Vasudevan
Greenhorn

Joined: Mar 31, 2003
Posts: 19
You can copy the image to a location and save the absolute path of the image as text in the database.
This can be accessed from the jsp page.
Regards
Abhilash
[ May 14, 2003: Message edited by: Abhilash Vasudevan ]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Bhuvana B,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
narasimharao konjeti
Ranch Hand

Joined: Apr 26, 2003
Posts: 130
c bhavana,
there is another way to store the image in object otherthan the storing path of the image in database. i.e You can choose image as BLOB data type. u can work like this also. do as per your convinient.
wish u all the best
cheers


"Unwise to sweat petty stuff, wise to pet sweaty stuff."
Boon Subra
Ranch Hand

Joined: Jul 18, 2001
Posts: 69
Hi ,
Thank You,
Pl. can you suggest an example.
Thanks,
Bhuvana
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Insert jpeg files in the database column