Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to find length(in Bytes) of an Inputstream

800309Sep 25 2009 — edited Sep 25 2009
Hi ,

I have a dynamic InputStream which is coming from a HTTPRequest .

My requirement is to read the data in stream more than once . If i read the data using read(), it will read the entire data and for the subsequent reading it is not allowing .

So, is there any way to read a stream more than once .

Is it possible to get the length(in Bytes) of an InputStream
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2009
Added on Sep 25 2009
7 comments
444 views