I am using postgresql 9.2
and ,when I read the data from Bytea
(used to store binary large object data in postgresql)
field using getBlob()
method but I'm getting the same error
Error: type bad value for long.
I know that I'm getting this error because of only getBinaryStream()
and getBytes()
method works with this(Bytea) and getBlob()
method works with OID
type field. But I have situation.So I would like to know that, is there any way to read the data from Bytea
using getBlob()
method in Postgresql9.2
. Thank you in advance.