codeigniter-restserver icon indicating copy to clipboard operation
codeigniter-restserver copied to clipboard

rest_enable_logging and binary data

Open dondrake opened this issue 14 years ago • 2 comments

I have a PUT request that uploads an image and when I have rest_enable_logging turned on, I'm getting the following Postgres error:

ERROR - 2012-02-12 20:15:37 --> Query error: ERROR: invalid byte sequence for encoding "UTF8": 0x89

I traced it to the Loging code attempting to insert the parameter data. Can you disable logging for some requests (PUT)? Or do you have another workaround?

Thanks.

dondrake avatar Feb 12 '12 20:02 dondrake

Does somebody has a solution for this?

arrie1992 avatar Jan 14 '13 18:01 arrie1992

The issue is with storing binary data. See this article: http://stackoverflow.com/questions/7661035/heroku-cant-push-my-db

The fix would be to change the column to type BLOB.

chriskacerguis avatar Nov 28 '13 15:11 chriskacerguis