Re: Re: Uploading Photos to MySQL
| From: | Sean C. McCarthy | Date: | Wed, 12 Sep 2001 10:59:33 +0000 |
| Subject: | Re: Re: Uploading Photos to MySQL | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67033@lists.php.net to get a copy of this message | ||
Hi all,
If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/
what
inserts in the DB is just the image's name, but not the file itself.
What is exactly the problem you are having with the class? Just a couple
days ago I had a problem uploading files into a MySQL DB because the
addslashes function. As I have seen in this code it also uses it. Your
problem is with getting corrupt data from the DB?
If it is this use base64_encode and base64_decode. This is a tip Chris
(only know his name) gave me as no solution for addslashes was given...
Thanks again Chris!!
Sean C. McCarthy
SCI, S.L. (www.sci-spain.com)
Richard Lynch wrote:
>
> Rasmus' classic Photo Album is still online with source code.
>
> Google:
> "Rasmus Lerdorf" and "Photo Album"
>
> --
> WARNING richard@zend.com address is an endangered species -- Use
> ceo@l-i-e.com
> Wanna help me out? Like Music? Buy a CD:
> http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> ----- Original Message -----
> From: Mike Gifford <mike@openconcept.on.ca>
> Newsgroups: php.general
> To: <php-general@lists.php.net>
> Sent: Tuesday, September 11, 2001 2:45 PM
> Subject: Uploading Photos to MySQL
>
> > Hello,
> >
> > Has anyone developed another class for uploading images to a MySQL
> database?
> >
> > I downlaoded upload_db.zip from:
> > http://circle.ch/scripts/
> >
> > as it was a phplib based and it looks like it should do what is required.
> > However it doesn't seem to be working.
> >
> > Does anyone else have any good pointers to scripts to store jpg/png files
> in
> > MySQL using PHP?
> >
> > Thanks.
> >
> > Mike
> > --
> > Mike Gifford, OpenConcept Consulting, http://openconcept.cawHtÎè
> > ïFn¹ˆsù!®�
> > Offering everything your organization needs for an effective web site.
> > Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
> > In all things it is better to hope than to despair.Wolfgang von Goethe
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net