Hello, I am not sure about your NPE, but this code here ignores the result of the read call. It cannot deal with short reads:
Am Sun, 28 Aug 2016 15:50:36 +0200 schrieb Oliver Zemann <[email protected]>: > byte b[] =new byte[4096]; > while (inputStream.read(b) != -1) { > fos.write(b); > bytesWritten += b.length; Gruss Bernd --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
