hi all,
i have a file which i need to copy to another system through
jsp.
i have the following code.
*************
String dst="http://<hostname>/picture/"+libname+"/"+picname+".jpg";
System.out.println(dst);
InputStream in = new FileInputStream(location);
OutputStream out1 = new FileOutputStream(dst);
// Transfer bytes from in to out
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
out1.write(buf, 0, len);
}
in.close();
out1.close();
*************
but, i get an error message stating that the resource cannot be found. the system fails to recognize the two '//'s given and takes only one irrespective of the number of /'s i give.
can someone help me on this?