Hi,

I have a problem.

I'm trying to read a file that has been submitted by other machine.
I would like to read and then make a copy of that file on my machine.

I'm able to do so on my local machine...i mean by submitting a file and opening it and them making a copy..(all on the local machine)

I'm using JSP.
FileInputStream fin=new FileInputStream(filename);
DataInputStream din = new DataInputStream(fin);

FileOutputStream fout=new FileOutputStream("C:/Demo/"+pathname);

int val;
while((val=din.read())!=-1)
{
fout.write(val);
}
-------------------------------------------------------------------

Please do help me.

Thanks in advance.