Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

To Read Byte Array By using ByteArrayInputStream  RSS feed

 
Thummalashankar Reddy
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use Code Tags. It makes your posts easier to read. Also, what you've posted will not compile. Please Post Real Code.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!