01-20-2011 05:59 AM
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();
01-20-2011 06:25 AM
01-20-2011 06:53 AM
01-20-2011 08:24 AM
01-20-2011 09:59 AM
01-20-2011 10:06 AM
01-20-2011 10:08 AM
http://192.168.1.10:8080/alfresco/d/d/workspace/SpacesStore/048441fe-e391-4d32-9027-44bcc3fda8a3/Hel...
01-20-2011 10:42 AM
01-21-2011 05:56 AM
01-21-2011 06:24 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.