int size = 1024;OutputStream os = null;URLConnection URLConn = null;InputStream is = null;try {URL fileUrl;byte[] buf;int ByteRead;fileUrl = new URL(url);os = new BufferedOutputStream(new FileOutputStream(dirPath + "\\" + filename));URLConn = fileUrl.openConnection();is = URLConn.getInputStream();buf = new byte[size];while ((ByteRead = is.read(buf)) != -1) {os.write(buf, 0, ByteRead);}} catch (Exception e) {e.printStackTrace();} finally {try {is.close();os.close();} catch (IOException e) {e.printStackTrace();}}
Iran, Israele prevede almeno altre tre settimane di guerra. Colpita base
italiana in Kuwait. Trump pronto ad annunciare coalizione per Hormuz
-
La guerra tra Iran, Stati Uniti e Israele continua ad allargarsi mentre
nuovi fronti si accendono in tutto il Medio Oriente. Nella notte forti
esplosioni a...
5 ore fa


Nessun commento:
Posta un commento