Blob Upload

From: "Aristeu Gil Alves Junior" <arisjr(at)terra(dot)com(dot)br>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Blob Upload
Date: 2000-11-21 13:07:32
Message-ID: 00a801c053bc$033d9b20$aa14b0c8@caras
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I´m trying to upload a gif image from a web interface (apache/php) without
success.
I´m using the input type ="file".
Have someone already made this work?

And even when I try to upload from the SQL interface of Tkl PgAccess... :
The table:
CREATE TABLE images (name VARCHAR[30] , img OID);

SQL Command
INSERT INTO images (name, img) VALUES (´img01.gif´ ,
lo_import(´/images/test.gif´) );

....it brings up the error:
ERROR: array_in: Need to specify dimension

Any help will be of great value.
Thanks to all.

Best Regards
****************************************************
Aristeu Gil Alves Junior<arisjr(at)terra(dot)com(dot)br>
IT Analyst
Porto Alegre/RS - Brasil
****************************************************
"Communications without intelligence is noise;
Intelligence without communications is irrelevant."
Gen. Alfred. M. Gray, USMC

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Keith Wong 2000-11-21 13:25:22 Re: Persistent Connects (pg_pconnect)
Previous Message Colleen Williams 2000-11-21 12:34:19 Persistent Connects (pg_pconnect)