X-Original-To: pgsql-odbc@postgresql.org Received: from hotmail.com (f158.law12.hotmail.com [64.4.19.158]) by postgresql.org (Postfix) with ESMTP id 9E342474E4F for ; Wed, 19 Mar 2003 08:25:08 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 19 Mar 2003 05:25:11 -0800 Received: from 134.83.1.225 by lw12fd.law12.hotmail.msn.com with HTTP; Wed, 19 Mar 2003 13:25:11 GMT X-Originating-IP: [134.83.1.225] X-Originating-Email: [nishatreesa@hotmail.com] From: "Nisha Joseph" To: pgsql-odbc@postgresql.org Subject: Size limit for bytea type? Date: Wed, 19 Mar 2003 13:25:11 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 19 Mar 2003 13:25:11.0899 (UTC) FILETIME=[F81CC2B0:01C2EE1A] X-Archive-Number: 200303/26 X-Sequence-Number: 2745 Hi, My application ,written in VC++ requires to store photographs in a postgres table. I have been using odbc Driver 7.02.005 with Postgresql 7.1.2 . I am using the bytea datatype to store photographs. create table photographs1 (id integer , data bytea, Name text ); Now I cant insert files of more than 100k .I have tried increasing the value of Max LongVarchar on the ODBC Driver optons also but this doesnt seem to have an effect on storing the data. Also I need to transfer photographs stored as large objects in a Microsoft Aceess 2000 database to the photographs table in Postgres . I cant figure out how to manipulate BLOBs from my application that is why I am trying out the bytea type at present. Can anyone please help me regarding this? Thanks in Advance Nisha _________________________________________________________________ Express yourself with cool emoticons http://messenger.msn.co.uk