Albe Laurenz rašė:
I don't quite understand what you wrote about lo_read and libpq,
because libpq provides lo_open.
All I wanted to say, is that it's the components that "talks" to libpq,
so there's not a nice way of programming to violate the route "your code
-> component code -> libpq". So th
Please don't top post.
Julius Tuskenis wrote:
>> Large Objects
>> (http://www.postgresql.org/docs/current/static/largeobjects.html)
>> use OID columns, and they work fine for storing binary data like images.
>
> In the article you provided it is said that "The return value is the OID
> that was
Hello, Albe
In the article you provided it is said that "The return value is the OID
that was assigned to the new large object..." (function Oid
lo_creat(PGconn *conn, int mode);). That means that not the large object
is stored in OID field - its just the reference to it.
Any way I find it muc
dbalinglung wrote:
>> I seriously doubt you could store an image in oid typed column, because
>> "The oid type is currently implemented as an unsigned four-byte
>> integer." (from postgresql 8.2 manual). I too use Zeos with no problems
>> using bytea type.
>
> Ok, I'll try your sugestion, many t
Ok, I'll try your sugestion, many thanks bro.
Regards,
dbalinglung
>- Original Message -
>From: "Julius Tuskenis"
>To: "dbalinglung"
>Sent: Tuesday, December 30, 2008 5:39 PM
>Subject: Re: [GENERAL] Load Image File From PostgreSQL DB
>
ly connected to
PostgreSQL Database using Zeos Component.
Any sugestion for me bro ?
many thanks and regards,
dbalinglung
>- Original Message -
>From: "Julius Tuskenis"
>Cc:
>Sent: Tuesday, December 30, 2008 2:46 PM
>Subject: Re: [GENERAL] Load Image File
Hi, dbalinglung.
You are probably confusing types oid and lo or bytea. There's no way you
could put a image into oid column. I'm using bytea type without problems.
Also check "bytea as lo" checkbox in ODBC dialog (if you use ODBC). Also
TDBImage is no good if you want to use jpg files. I found
Dear Expert,
I'm sorry for my newbie question, I have a dificulty to load image file from
field OID type on PostgreSQL with Borland Delphi 7.
I would like to showing image file with TDBImage component to Delphi Form, but
the image file can't display, any sugestion for me about how can i do to