Setting 'host' value in database configuration corrupts bytea data saving

2009-03-17 Thread Morail
Trying to save data into a bytea field in a PostrgreSQL (i.e. a photo upload, storing the photo into the db) I encountered a problem: retrieving saved data later those data ended up to be corrupted. In particular investingating within those files I found that the character ' have been doubled.

Re: Setting 'host' value in database configuration corrupts bytea data saving

2009-03-17 Thread Morail
Ok, after further tests now I know that I was wrong: now even dropping the 'hos' value from database config the generated files are corrupted. The problem seems to be the same: the characters ' appers twice instead of one. Any ideas? Marco On Mar 17, 12:46 pm, Morail marco.frass...@gmail.com

Re: Setting 'host' value in database configuration corrupts bytea data saving

2009-03-17 Thread brian
Your data is being escaped. Have a look at DboSource to see if there's a way to stop certain fields from being escaped. On Tue, Mar 17, 2009 at 11:52 AM, Morail marco.frass...@gmail.com wrote: Ok, after further tests now I know that I was wrong: now even dropping the 'hos' value from database

Re: Setting 'host' value in database configuration corrupts bytea data saving

2009-03-17 Thread Morail
I supposed it too since I tried with a MySQL db and there's no problem in that case. So the problem must be somewhere in the DboSource related to PostgreSQL On Mar 17, 5:17 pm, brian bally.z...@gmail.com wrote: Your data is being escaped. Have a look at DboSource to see if there's a way to