pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Blob Upload
3+ messages / 2 participants
[nested] [flat]

* Blob Upload
@ 2000-11-21 13:07 Aristeu Gil Alves Junior <arisjr@terra.com.br>
  2000-11-21 13:42 ` Re: Blob Upload Keith Wong <keith@e-magine.com.au>
  0 siblings, 1 reply; 3+ messages in thread

From: Aristeu Gil Alves Junior @ 2000-11-21 13:07 UTC (permalink / raw)
  To: 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@terra.com.br>
IT Analyst
Porto Alegre/RS - Brasil
****************************************************
"Communications without intelligence is noise;
Intelligence without communications is irrelevant."
Gen. Alfred. M. Gray, USMC




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Blob Upload
  2000-11-21 13:07 Blob Upload Aristeu Gil Alves Junior <arisjr@terra.com.br>
@ 2000-11-21 13:42 ` Keith Wong <keith@e-magine.com.au>
  0 siblings, 0 replies; 3+ messages in thread

From: Keith Wong @ 2000-11-21 13:42 UTC (permalink / raw)
  To: Aristeu Gil Alves Junior <arisjr@terra.com.br>; pgsql-sql

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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Blob Upload
@ 2000-11-21 22:04 Aristeu Gil Alves Junior <arisjr@terra.com.br>
  0 siblings, 0 replies; 3+ messages in thread

From: Aristeu Gil Alves Junior @ 2000-11-21 22:04 UTC (permalink / raw)
  To: pgsql-sql

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
>
>




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-11-21 22:04 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-21 13:07 Blob Upload Aristeu Gil Alves Junior <arisjr@terra.com.br>
2000-11-21 13:42 ` Keith Wong <keith@e-magine.com.au>
2000-11-21 22:04 Re: Blob Upload Aristeu Gil Alves Junior <arisjr@terra.com.br>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox