Sunday, August 14, 2011

Where to store/upload an image from a web form? In the database table or on webserver/filesystem?

I am developing a matrimonial website where I require to store/upload images from users at the time of registration. I want to know what is the best approach to store/upload images for such a purpose, that is where to store/upload image, in the database table as BLOB data type or storing/uploading image in a separate folder/directory on web-server/file-system and and adding the location/details (text string) of the images to the database.? I am using Java, JSP, Servlets for programming and MySQL as database. Please also let me know if any other best methodology is there. I am also told that certain web hosts disallow uploading images into MySQL database. My host is GoDaddy.com.

No comments:

Post a Comment