阅读背景:

Postgres编码“UTF8”错误,同时通过Java插入图像。

来源:互联网 

I am inserting jpeg images into my UTF-8 encoded Postgres database into bytea column/s. I'm using a prepared sql statement to insert the images. In the statement I create a file object, within Java, of the jpeg image and then pass it as a FileInputStream into the setBinaryStream method. However every now and again my Java app will throw an exception once the statement is executed, stating that:I am inserting jpeg images into my UTF-8 encode




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: