String urlText= "http://'+ip +":"+port+"/alfresco"+ downloadUrl;
URL url = new URL(urlText);
fileName = urlText.substring(urlText.lastIndexOf("/")+1,urlText.length());
URLConnection con = url.openConnection();
BufferedInputStream in = new BufferedInputStream(con.getInputStream());
File outFolder = new File("C:/AlfrescoTmp/");
outFolder.mkdir();
FileOutputStream out = new FileOutputStream("C:/AlfrescoTmp/" + fileName);
int i = 0;
byte[] bytesIn = new byte[1024];
while ((i = in.read(bytesIn)) >= 0) {
out.write(bytesIn, 0, i);
}
out.flush();
out.close();
in.close();
http://192.168.1.10:8080/alfresco/d/d/workspace/SpacesStore/048441fe-e391-4d32-9027-44bcc3fda8a3/Hel...
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.