Re: How to insert and select images from postgres db

From: Date: Sun, 03 Apr 2005 12:37:07 +0000
Subject: Re: How to insert and select images from postgres db
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212108@lists.php.net to get a copy of this message
same thing for inserting, or similar but youl have to read file s something like: <? $file = "path/file.jpg"; $handle = $fopen ($file, "r"); $size = filesize($file, $handle); $content = fread($handle, $size); $content = mysql_escape_string($content); // and now you can insert it into database ?> "J.F.Kishor" <kishor@ooty.tenet.res.in> wrote in message news:Pine.LNX.4.33.0503301706440.20884-100000@kuruvi.ooty.tenet.res.in... > Hi, > > I am having a problem in storing and selecting images in and > from postgres. > > My requirement is I have to select the image from the database > and display it in User Interface. > > Can anyone help me through this problem, I'am in need of this > solution by today. > > > > Regards, > - JFK > kishor > Nilgiri Networks

« previous php.general (#212108) next »