Squabbi Kong

Squabbi Kong

  • NA
  • 7
  • 17.1k

Files not downloading the correct file using WebClient

Nov 24 2015 5:35 AM
Hello! I'm using this code to download a file and save it to a location. 
 
http://pastebin.com/10vpANR9
 
When I bring it up with:
 
DownloadFile("TWRP", "https://dl.twrp.me/angler/twrp-2.8.7.2-angler.img", "./Downloads/TWRP.img") 
 
It downloads a 6kb file when it is supposed to be ~16.5M. When accessing the link from a web browser (ie. Firefox) it prompts me to download.
 
Is there a way to work around this?
 
Thanks. 

Answers (1)