try {
URL url = new URL(autofilepath);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
DataInputStream in = new DataInputStream(connection.getInputStream());
DataOutputStream outs = new DataOutputStream(new FileOutputStream(filePath));
byte[] buffer = new byte[4096];
int count = 0;
while ((count = in.read(buffer)) > 0) {
outs.write(buffer, 0, count);
}
out.close();
in.close();
}
catch (Exception e) {
}
URL url = new URL(autofilepath);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
DataInputStream in = new DataInputStream(connection.getInputStream());
DataOutputStream outs = new DataOutputStream(new FileOutputStream(filePath));
byte[] buffer = new byte[4096];
int count = 0;
while ((count = in.read(buffer)) > 0) {
outs.write(buffer, 0, count);
}
out.close();
in.close();
}
catch (Exception e) {
}