Subject | Re: [Firebird-Java] BLOB SUB_TYPE 1 |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-11-23T20:14:49Z |
> Sorry if this is mentioned somewhere, but it seems you cannot treatNot really - we have sometime ago defined
> a BLOB SUB_TYPE 1 as an actual Blob?
BLOB SUB_TYPE 0 - Types.LONGVARBINARY
BLOB SUB_TYPE 1 - Types.LONGVARCHAR
BLOB SUB_TYPE <0 - Types.BLOB
Also if you want to have more generic solution, try to stick to
setBytes(byte[]), setBinaryStream(InputStream) and
setCharacterStream(Reader).
> Is this true?At present no, but I think we can add this mapping - we are not consistent
>
> ps.setBlob( pos, newBlob );
here: getBlob() works, but setBlob(Blob) doesn't. Please fill this as a bug
or a feature request for JayBird.
Roman