Re: upload a image file and save into the table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> 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



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux