Re: Load Image from File to Store in ByteA Field using PEAR::DB

From: Date: Fri, 06 Feb 2004 22:32:09 +0000
Subject: Re: Load Image from File to Store in ByteA Field using PEAR::DB
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10532@lists.php.net to get a copy of this message
Muhyiddin A.M Hayat wrote: > How to Load Image from File to Store in ByteA Field Using PEAR::DB? > > Im Using PostgreSQL 7.3.4 > Should be a simple matter of... $res = $DB->query('INSERT INTO table(field) VALUES('.pg_escape_bytea(file_get_contents($pathToFile)).')');

« previous php.pear.general (#10532) next »