HI all !
Hm i'll try explain its strange problem....have Linux Suse , postgresql 7.3.4, db with client_encoding = unicode. Blobs saved in db in field with type bytea. When i try get blob from db i get bad image(hex is not correct, IMHO something that have relation to unicode )

Qt Code:
  1. *** conect to database simple without setting something conection options
  2.  
  3. QByteArray pixPhoto = query.value(0).toByteArray();
To copy to clipboard, switch view to plain text mode