How to download bytes of file from URL at specific location from in input-stream?
How to download bytes of file from URL at specific location from in input-stream?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will have to “read” all the bytes. Just skip the first ones that you don’t need. When you get to the point that you want to start saving data from the stream, save just the bytes you want and then close the stream.
Depending on the class there are methods like
skip()than can help you skip past the bytes you don’t want.