----- Original Message ----- From: "Max van de Wiel" <> To: <php-objects@xxxxxxxxxxxxxxx> Sent: Thursday, June 02, 2005 3:02 PM Subject: RE: How to store and retereive image in database? > > Hi Mark, > > Why don't just store the references (i.e. locations) to your images in > mysql,..... As far as I know it is not very practical to really store the > images 'data' in your DBMS!? That's what I suggested as the preffered method as well, it's how I do it. The poster's english isn't the best and taking for word that they wanted the image stored in the database for one reason or another. > matter. If, in a particular case there is a real need to store the image > 'data' in a field, I am intrested and would like to now the purpose for > this. Agree, in most cases I think the way myself and you do it, by simply storing the images on the web server and referencing it with a bit of text in the database is fine and imho, (in my humble opinion), it's the most efficient way for most scripted applications such as a web page to do it. Hmm, why would anyone want to ever use a blob instead? Portability maybe, if you move the database or the application changes the images are still available with the same SQL statements and it's one thing to move instead of one thing and a directory of things. Also, available to more applications as well that way too maybe??? the original poster have some more light on what they are actually using this for? cheers, Mark PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/