[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Re: read blob as byte array issue

Your field is an oid, not a blob, Long seems to be the correct type for it, and this is what the database is returning (use getObject() in your JDBC test not getBytes()). Why do you want to you byte[] in your model, not long? The conversion from long to byte[] is not obvious?

You could try using a Converter on your mapping to convert from Long to byte[].

---
James
http://www.nabble.com/EclipseLink---Users-f26658.html