Re: upload a image file and save into the table

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Zhidian Du" <duzhidian(at)hotmail(dot)com>, <pgsql-php(at)postgresql(dot)org>
Subject: Re: upload a image file and save into the table
Date: 2002-09-19 04:42:29
Message-ID: GNELIHDDFBOCMGBFGEFOGEFBCEAA.chriskl@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

> I want to let users upload a image file (jpg or gif or any binary file)
> from browser and save these files into one column of a table, how can i
> implement it ?

Use the 'bytea' column type. You must properly escape the binary data
before inserting it tho. There are functions in PHP's postgres module to do
this.

Chris

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Joe Conway 2002-09-19 04:46:45 Re: upload a image file and save into the table
Previous Message Zhidian Du 2002-09-19 04:34:37 upload a image file and save into the table