PostgresSQL 9.1 byte array 變兩倍大

原本將圖示存到PostgresSQL
用Jdbc讀出來後發現byte [] 的length變成兩倍大

http://stackoverflow.com/questions/6181524/getting-nearly-double-the-length-when-reading-byte-from-postgres-with-jpa
結果原來是jdbc driver更新就好了

因為原本是PostgresSQL 8.x,太久沒更新driver了
有空真的要記得常更新
要不然一次更新很多,問題也會很多


留言

這個網誌中的熱門文章

序曲Overture

Tomcat並存