T
tal
Hi!
I am trying to retrieve some data from a db using the "getAsciiStream"
method of the ResultSet class of java language .
My code is like this:
rs = stmt.executeQuery(queryText);
InputStream in = rs.getAsciiStream(1);
boolean eof = false;
while(!eof)
i = in.read();
.
.
.
Keep reading the bytes
But the value of i is -1 and when I look at the inputStream, he is
empty!
I have tried all sorts of other versions for this code which I saw at
the internet but all the time the value of i is -1.
Can anyone help me with this?
I can't use getString method because it too slow...
I am trying to retrieve some data from a db using the "getAsciiStream"
method of the ResultSet class of java language .
My code is like this:
rs = stmt.executeQuery(queryText);
InputStream in = rs.getAsciiStream(1);
boolean eof = false;
while(!eof)
i = in.read();
.
.
.
Keep reading the bytes
But the value of i is -1 and when I look at the inputStream, he is
empty!
I have tried all sorts of other versions for this code which I saw at
the internet but all the time the value of i is -1.
Can anyone help me with this?
I can't use getString method because it too slow...