[solved] Delphi, Postgres - blob field, file storage

The stable tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.
Post Reply
spliter
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 23.05.2013, 14:43

[solved] Delphi, Postgres - blob field, file storage

Post by spliter »

Hello,
i looked everywhere and really didnt found answer.
I'm using postgres 9.2, Delphi 2009 and XE3 and zeos 7.0.0.3
I tried to upload file to bytea type field. When i upload it (zquery), and download without refreshing, everything is ok. Until i close and open query (load data from DB) file size is 3x times bigger. I tried different methods...from simplest LoadFromFile to working with streams. And on every method result is the same. Uploaded 10kb file got 31kb file. What i'm doing wrong?

I'm realllly sorry, if that was in some topic, i'm on this all day, and my head isnt thinking really cleary.
spliter
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 23.05.2013, 14:43

Re: Delphi, Postgres - blob field, file storage

Post by spliter »

Really nobody using delphi, postgres, new zeos and doing file upload and download? :(
spliter
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 23.05.2013, 14:43

Post by spliter »

Just found out - libpq.dll. Delphi was used old old old one, upgraded end everything is ok.
Sorry, for spamming, thread can be deleted.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

spliter,

the thread must not be deleted. Simply add [solved] to your topic..
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Post Reply