aspose file tools
The moose likes Portals and Portlets and the fly likes storing images or image file names Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "storing images or image file names" Watch "storing images or image file names" New topic
Author

storing images or image file names

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 192
Hi all,
I am working on an application,in which I have to store few pictures of some users in my Database(mysql 5.0).I am not understanding,should I store image files in database or I store only their location on the PC(i,e C:/images/mouse.jpg).

with regards,
Ajse
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

It depends on your overall design .
but we usually store images into database as using this mechanism you will have some advantages like:
- backup recovery would be a single task , although it will cause you to back up a bigger storage .
-your data integrity will be held easier as you can simple delete the recoed and its related image will be deleted , you may find it a bit more complex to store/retrieve images into/from db which you can find its solution right in this forum.
-....


Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: storing images or image file names
 
Similar Threads
Storing images into database using jsp
Image jsp servlet controller bean and database
Displaying images on JSP page
Need some advice on designing a scanned document archive system.
image from database to servlet