So out of curiosity, when would any of you suggest storing image data in the database as opposed to image links? -jmb Azan wrote: >I'm totally agree with that... >so... decide which way to go based on your project.. > > >On 6/2/05, Mark Groen <markgroen@xxxxxxxxx> wrote: > > >> ----- Original Message ----- >> From: "Eric Kandja" <> >> To: <php-objects@xxxxxxxxxxxxxxx> >> Sent: Thursday, June 02, 2005 2:15 PM >> Subject: Re: How to store and retereive image in database? >> >> >> > In your Mysql database you can insert only the name of your image files >> as >> > you know which directory are your images. >> > You will use this name in your webpage. >> >> That is the preferred method of course, but you can certainly store the >> image as a binary object (blob) in your database without any problems. >> >> If your mysql server runs hard, storing the name of the image, (you only >> need to store the name, the directory location can be coded in your php if >> you save them in the same place), instead of the actual image will have a >> smaller output using a bit of text compared to a large blob. >> >> Either way, the same amount of data has to be served up if we're talking >> about a web page, but it's less juice to use the web server (like Apache) >>to >> store/retrieve images than a database. >> >> hope that makes sense, do a Google for the type of image uploader tutorial >> you want. Try this: >> >>http://www.google.ca/search?hl=en&q=php+mysql+image+uploader&btnG=Google+Search&meta= >> >> the tutes at phpfreaks.com are pretty good, (about the sixth link down), >>and >> they have a nice assortment of ready to use classes. >> >> cheers, >> >> Mark >> >> > > > How to store and retrieve image in mysql database.plz give example. >> > > > Thnx in Advance >> > > >> > > code from link below, tutorial for it at phpbuilder.com: >> > > >> > > >>http://lists.evolt.org/archive/Week-of-Mon-20020304/105637.html >> > > >> > > Warm Regards, >> > > >> > > Mark Groen >> > > >> > > MG Web Services >> > > Web Site Hosting and Development >> > > www.markgroen.com >> > > 604-780-6917 >> > > Bowen Island, B.C., Canada >> > > >> > > >> > > PHP Data object relational mapping generator - >> > http://www.meta-language.net/ >> > > Yahoo! Groups Links >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > >> > >> > >> > PHP Data object relational mapping generator - >> http://www.meta-language.net/ >> > Yahoo! Groups Links >> > >> > >> > >> > >> > >> > >> > >> >> >> >> >> 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 the Yahoo! Terms of Service. >> >> > > > > >PHP Data object relational mapping generator - http://www.meta-language.net/ >Yahoo! Groups Links > > > > > > > > > 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/