Hi, On 11/28/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:
And how do I read the actual data with that inputstream?
It's a standard java.io.InputStream. See the javadocs for example at http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html. A common pattern I use when processing stream data is: InputStream data = ...; try { byte[] buffer = new byte[BUFFER_SIZE]; for (int n = data.read(buffer); n != -1; n = data.read(buffer)) { // process n bytes of data in buffer } } finally { data.close(); } Note especially the finally branch used to guarantee that the stream gets closed even if an error occurs.
Sorry if this is a stupid question, but i'm not that experienced.
No problem, stupid is the one who doesn't ask. :-) BR, Jukka Zitting
