Getting nearly double the length when reading byte[] from postgres with jpa

后端 未结 5 753
夕颜
夕颜 2021-01-06 11:50

I have an Image class that has a byte[] to contain the actual image data. I\'m able to upload and insert the image just fine in my webapp. When I attempt to display the im

5条回答
  •  难免孤独
    2021-01-06 12:17

    Check whether you have an old postgresql jar. I faced the same problem, and found both 8.3 postgresql jar and a 9.1 postgresql jar in my lib. After remove 8.3 postgresql, byte[] works fine.

提交回复
热议问题