Download images to a folder using code
Can I download images from a url via my code and save it in a folder inside repl.it
reteshgondal
csharp
i want to download images from a URL. testing my code but getting some authentication error
ArchieMaclean
@reteshgondal I'm sorry, I don't know any c sharp.
Hopefully someone else can help you. Good luck!
ArchieMaclean
What language are you wanting to use?
public class downloadImages{
public void download(string[] args){
using (WebClient client = new WebClient())
{
client.DownloadFile(new Uri("someimage.JPG"), "/images/someimage.jpg");
}
}