Hello: 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 ? Thanks in advance. Zhidian Du _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 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
Zhidian Du wrote: > 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 ? > Please search the archives. There have been multiple discussions about this in the past. Here's a link to one thread: http://archives.postgresql.org/pgsql-general/2002-02/msg01140.php Joe
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера