Hi there. I have some data stored in a DB2 database as a BLOB data type. I am retrieving this data from the database and putting it into an ArrayList as an InputStream object.
I then loop through the ArrayList of InputStream objects to output the images to a JTextPane.
This is the code I am using to insert the images:
However when it tries to execute the "while (is.read(buffer) > 0)"
it returns the following exception:
com.ibm.as400.access.ExtendedIOException: Resource not available.
at com.ibm.as400.access.AS400JDBCInputStream.read(AS400JDBCInputStream.java:201)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
I can't seem to figure out exactly what is the issue here?
Any ideas?
Thanks for any help!