db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendle...@amberpoint.com>
Subject Re: Problem storing an image in a Blob field in Java DB.
Date Fri, 12 Feb 2010 15:27:23 GMT
Dinesh Bajaj wrote:
>     preparedStatement.setBinaryStream(5, inputStream, file.length());

>     Message = Java exception: 'Input stream did not have exact amount of
>     data as the requested length.:

Can you show more of your actual code? It sounds like 'inputStream'
is not returning the data which is in 'file'.

Paste in a larger segment of your code, showing all the activity to
'inputStream' and 'file' since they were declared as variables.



View raw message