T
Tushar Gandhi
Hi,
I am facing a problem to copy the file.
I am getting path of the file like this
"http://photos-d.ak.fbcdn.net/photos-ak-snc1/v2574/90/75/704291251/457931_8289306.jpg".
I want to copy this file locally. I am trying to do this by using
File.copy("http://photos-d.ak.fbcdn.net/photos-ak-snc1/v2574/90/75/704291251/457931_8289306.jpg","/images");
I am getting an error
Invalid argument -
http://photos-d.ak.fbcdn.net/photos-ak-snc1/v2574/90/75/704291251/457931_8289306.jpg
I know that this is not a directory path. Is any one knows how to copy
this file?
Thanks
Tushar
I am facing a problem to copy the file.
I am getting path of the file like this
"http://photos-d.ak.fbcdn.net/photos-ak-snc1/v2574/90/75/704291251/457931_8289306.jpg".
I want to copy this file locally. I am trying to do this by using
File.copy("http://photos-d.ak.fbcdn.net/photos-ak-snc1/v2574/90/75/704291251/457931_8289306.jpg","/images");
I am getting an error
Invalid argument -
http://photos-d.ak.fbcdn.net/photos-ak-snc1/v2574/90/75/704291251/457931_8289306.jpg
I know that this is not a directory path. Is any one knows how to copy
this file?
Thanks
Tushar