Page 1 of 1

upload an image file to a PostgreSQL table

Posted: Wed Jul 31, 2002 11:29 pm
by blueriver
Can anybody tell me how to make a PHP script to upload an image file (mypicture.jpg for example) to a PostgreSQL table ?

Posted: Thu Aug 01, 2002 3:01 am
by haagen
Check the COPY function.

Posted: Thu Aug 01, 2002 9:25 pm
by blueriver
Thank you very much. Could you mind telling me more clearly, writing some code for example ? I'm a beginner

Posted: Thu Aug 01, 2002 9:43 pm
by phice
blueriver wrote:Thank you very much. Could you mind telling me more clearly, writing some code for example ? I'm a beginner
http://www.php.net/copy

Posted: Fri Aug 02, 2002 3:07 am
by haagen
I'll email you my banc accno., then I will write a function for you!

We help you, we wont write the code for you!

Posted: Fri Aug 02, 2002 3:20 am
by twigletmac
If you just post 'look at this function' but don't tell the guy where he can find information about it (is it a SQL function, a PHP function, or something else) then it's not surprising that he has to ask for more information.

If you give a link to information and the person doesn't look at that and just says 'give me code' then that's a different story. There's no need to be rude when a user asks for an example - giving him the link to the relevant man page as phice did was a much better response.

Mac

Posted: Sat Aug 03, 2002 12:34 am
by blueriver
Thanks everybody!