From: Bruce Holt <bj_holt@hotmail.com>
To: tgl@sss.pgh.pa.us
Cc: pgsql-odbc@postgresql.org
Subject: Re: inserting blob data
Date: Wed, 27 Nov 2002 13:48:13 -0700
Message-ID: <F2127q6wofLUOSYrPEU000031ea@hotmail.com> (raw)
"Bruce Holt" <bj_holt@hotmail.com> writes:
>> Hmm, the 8K limit has been gone for a long time. You didn't mention
>> your Postgres server's version, but I'm betting you need to update
>> either your server or your ODBC driver. Possibly both.
> PostgreSQL 7.2.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2
>And your ODBC driver was up to date too, right? So much for that
>theory. How exactly are you trying to store the blob data? (A code
>snippet would be an appropriate answer, probably.)
I am using the ADO for VB example found at:
http://odbc.postgresql.org/psqlodbc.php?DocID=howto-vblo
I have tried three table structures as well:
# create table MYTABLE (main integer, object bytea);
# create table MYTABLE (main integer, object oid);
# create table MYTABLE (main integer, object text);
I can insert the data correctly, and save it to the server using the
# select lo_export(#####, '/mypath/myfile');
command. I just can't retrieve the blob data via ODBC.
Thanks,
Bruce Holt
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: bj_holt@hotmail.com, tgl@sss.pgh.pa.us
Subject: Re: inserting blob data
In-Reply-To: <F2127q6wofLUOSYrPEU000031ea@hotmail.com>
References: <F2127q6wofLUOSYrPEU000031ea@hotmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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