取得inputStream的长度
1.网络下载文件
1 URL url = new URL(strUrl); 2 3 HttpURLConnection httpconn = (HttpURLConnection)url.openConnection(); 4 5 httpconn.getContentLength();
2.本地文件
1 InputStream inputStream = urlCon.getInputStream(); 2 3 inputStream.available();
Jack Fan
Email: juan850311@163.com
QQ: 441935503
Email: juan850311@163.com
QQ: 441935503