Re: insert/retrieve image into database

From: Date: Thu, 17 Aug 2000 22:19:04 +0000
Subject: Re: insert/retrieve image into database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12369@lists.php.net to get a copy of this message
On Thu, 17 Aug 2000, Remco Chang wrote: > hi, > > i am having some slight problem with inserting binary stuff into my > database via odbc function calls... i am trying to store a bunch of > images, and i cannot figure out how to make Php return a variable with all > the information in it such that i can store into a database using INSERT. > > essentially, the process is that a user would upload an image, and the > image goes into the database to be retrieved later when necessary... > > can someone point me to where i can look for this? i'm completely baffled > and out of ideas... :P > Hi Remco, What database are you using ? I know how to do this with MySQL, but I have no idea if with other databases is the same method. Usually you would just get the uploaded file, addslashes() to the binary file, and then insert it on the BLOB field. Regards, Joao -- Joao Prado Maia Web Developer Kefta.com, Inc

« previous php.general (#12369) next »