• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
14 views

Problem:

Which method can you use to find out the number of the bytes in a file using inputstream?

by (550 points)  

1 Answer

0 votes

Solution:

Try following code , getInputStream and available() should do the magic:

InputStream inputS = conn.getInputStream();
int totLength= inputS .available();

by (4k points)  
...