Search Postgresql Archives

Re: [ADMIN] Issue in save and retreive file in postgres

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/23/2012 02:48 PM, Vishwas Dwivedi wrote:
I am using postgreSQL 9.1.

My problem is when I retrieve pdf file data from postgreSQL and create a pdf
file in temp folder of my application.

The file gets created but not able to open it, shows some error.
One more thing that in my code I am converting byte array to file stream when saving and retrieving file from database.

both time save and retrieve, the byte array size differs. I don't know why?

Please reply to the list, not to me.  Unfortunately the list doesn't set reply-to.

Please provide the FULL EXACT TEXT OF THE ERROR MESSAGE by copying and pasting it into an email.

See: http://wiki.postgresql.org/wiki/Guide_to_reporting_problems


As for byte array differences, which client library are you using? Is it possible it's outdated and doesn't understand bytea_format=hex ?  See http://www.postgresql.org/docs/9.1/static/datatype-binary.html .

--
Craig Ringer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux