Re: upload a image file and save into the table - Mailing list pgsql-php

From Christopher Kings-Lynne
Subject Re: upload a image file and save into the table
Date
Msg-id GNELIHDDFBOCMGBFGEFOGEFBCEAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to upload a image file and save into the table  ("Zhidian Du" <duzhidian@hotmail.com>)
List 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


pgsql-php by date:

Previous
From: "Zhidian Du"
Date:
Subject: upload a image file and save into the table
Next
From: Joe Conway
Date:
Subject: Re: upload a image file and save into the table