Forums Register Login

To Read Byte Array By using ByteArrayInputStream

+Pie Number of slices to send: Send
I am writing code like this

Once this code is executed
I am changing the offeset value

It is completing the first iteration but in second iteration it is giving the following exception

java.lang.IndexOutOfBoundsException
at java.io.ByteArrayInputStream.read(ByteArrayInputStream.java:159)

Please help me

Thanks& Regards
T.Shankar Reddy

[ August 01, 2007: Message edited by: Joe Ess ]
[ August 01, 2007: Message edited by: Joe Ess ]
+Pie Number of slices to send: Send
Please use Code Tags. It makes your posts easier to read. Also, what you've posted will not compile. Please Post Real Code.
Police line, do not cross. Well, this tiny ad can go through:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2411 times.
Similar Threads
Regarding SCJP1.5
Cool Job, Cool Company...
FTP code
URL API to download the file: FileNotfoundException
Exception with ImageIO.read
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:11:44.