Thread: Blob Upload

Blob Upload

From
"Aristeu Gil Alves Junior"
Date:
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@terra.com.br>
IT Analyst
Porto Alegre/RS - Brasil
****************************************************
"Communications without intelligence is noise;
Intelligence without communications is irrelevant."
Gen. Alfred. M. Gray, USMC



Re: Blob Upload

From
Keith Wong
Date:
Do you mean VARCHAR[30] or VARCHAR(30)??
I think you're creating an array of chars...
but what you want is just a VARCHAR type with 30 characters...
It may explain the array error you are getting.

Keith

At 11:07 AM 21/11/2000 -0200, Aristeu Gil Alves Junior wrote:
>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@terra.com.br>
>IT Analyst
>Porto Alegre/RS - Brasil
>****************************************************
>"Communications without intelligence is noise;
>Intelligence without communications is irrelevant."
>Gen. Alfred. M. Gray, USMC



Re: Blob Upload

From
"Aristeu Gil Alves Junior"
Date:
Keith,

Thank you.
Your answer solved part of my problem.
Damn me.

Only remains how to upload a file from web interface(apache/php).
I´ll keep working on it.

Best Regards.
****************************************************
Aristeu Gil Alves Junior<arisjr@terra.com.br>
Consultor em Tecnologia de Informação
Porto Alegre/RS - Brasil
****************************************************
"Communications without intelligence is noise;
Intelligence without communications is irrelevant."
Gen. Alfred. M. Gray, USMC
----- Original Message -----
From: Keith Wong <keith@e-magine.com.au>
To: Aristeu Gil Alves Junior <arisjr@terra.com.br>;
<pgsql-sql@postgresql.org>
Sent: Tuesday, November 21, 2000 11:42 AM
Subject: Re: [SQL] Blob Upload


>Do you mean VARCHAR[30] or VARCHAR(30)??
>I think you're creating an array of chars...
>but what you want is just a VARCHAR type with 30 characters...
>It may explain the array error you are getting.
>
>Keith
>
>At 11:07 AM 21/11/2000 -0200, Aristeu Gil Alves Junior wrote:
>>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@terra.com.br>
>>IT Analyst
>>Porto Alegre/RS - Brasil
>>****************************************************
>>"Communications without intelligence is noise;
>>Intelligence without communications is irrelevant."
>>Gen. Alfred. M. Gray, USMC
>
>