codeigniter-restserver
codeigniter-restserver copied to clipboard
rest_enable_logging and binary data
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.
Does somebody has a solution for this?
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.