Received: from srv13-poa.poa.terra.com.br (srv13-poa.poa.zaz.com.br [200.248.149.91]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eALMHSs28635 for ; Tue, 21 Nov 2000 17:17:29 -0500 (EST) (envelope-from arisjr@terra.com.br) Received: from srv7-poa.poa.terra.com.br (srv7-poa.poa.terra.com.br [200.248.149.15]) by srv13-poa.poa.terra.com.br (8.9.3/8.9.3) with ESMTP id UAA18052 for ; Tue, 21 Nov 2000 20:15:17 -0200 Received: from caras (dl-tnt1-C8B0080F.poa.terra.com.br [200.176.8.15]) by srv7-poa.poa.terra.com.br (8.9.3/8.9.3) with SMTP id UAA09206 for ; Tue, 21 Nov 2000 20:15:16 -0200 Message-ID: <001b01c05407$16669620$0f08b0c8@caras> From: "Aristeu Gil Alves Junior" To: Subject: Re: Blob Upload Date: Tue, 21 Nov 2000 20:04:56 -0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.0810.800 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800 X-Archive-Number: 200011/179 X-Sequence-Number: 210 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 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 To: Aristeu Gil Alves Junior ; 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 >>IT Analyst >>Porto Alegre/RS - Brasil >>**************************************************** >>"Communications without intelligence is noise; >>Intelligence without communications is irrelevant." >>Gen. Alfred. M. Gray, USMC > >