Thanks for the help!
A:
Try to use following on line
public long downloadFile(String src, String dest, String filename){
try{
URL source = new URL(src);
URL dest = new URL(dest);
URLConnection sourceConn = source.openConnection();
URLConnection destConn = dest.openConnection();
sourceConn.setDoOutput(true);
destConn.setDoOutput(true);
sourceConn.connect();
destConn.connect();
FileOutputStream fos = new FileOutputStream(new File(dest, filename));
fos.write(IOUtils.toByteArray(sourceConn.getInputStream()));
fos.flush();
fos.close();
return IOUtils.sizeOf(destConn.getInputStream());
} catch (Exception e){
System.err.println("File transfer error." + e.toString());
}
return -1;
}
1. Field of the Invention
This invention relates to an apparatus for bending the end portions of rod-shaped articles. More particularly, this invention relates to an apparatus having a plurality of work supporting and indexing assemblies adapted to cooperatively bend the end portions of a plurality of rod-shaped articles, and means for individually placing the rod-shaped articles on the respective work supporting and indexing assemblies.
2. Description of the Prior Art
The end portions of rod-shaped articles, such as wire, rod, cable or the like, are commonly bent in the manufacture of items as diverse as electrical and electronic equipment, automotive equipment, and the like. For example, the end portions of the conductor members of electrical wire and cable are typically bent at the site of installation of such conductors to facilitate their connection to terminal strips, terminal bushings, terminal fittings, or other terminal equipment. Such bending of the end portions of the be359ba680
Related links:
Comments