Downloader

enes35001

Member
Trusted Member
Member
Jul 27, 2016
52
74
18
31
I want to download a file from the net, but the file is down to 307 KB

Code;

C#:
public void DownloadPackage()
        {
            if (!File.Exists(RustBuster2016.API.Hooks.GameDirectory + "\\RB_Data\\TEST\\gecemodu.wav))
            {
                string tr = "thats link";
                Uri adres = new Uri(tr);
                string yerel = RustBuster2016.API.Hooks.GameDirectory + "\\RB_Data\\TEST\\gecemodu.wav";
                web.DownloadFileAsync(adres, yerel);
            }
        }
 

Jakkee

Plugin Developer
Plugin Developer
Contributor
Jul 28, 2014
1,465
573
113
Australia
Probably the WebClient
C#:
using System.Net;
//...

WebClient Client = new WebClient ();
Client.DownloadFile("https://fougerite.com/styles/uix_dark/images/uix-logo.png", @"C:\folder\Fougerite-Logo.png");
 

enes35001

Member
Trusted Member
Member
Jul 27, 2016
52
74
18
31
Probably the WebClient
C#:
using System.Net;
//...

WebClient Client = new WebClient ();
Client.DownloadFile("https://fougerite.com/styles/uix_dark/images/uix-logo.png", @"C:\folder\Fougerite-Logo.png");
I tried them but my file is 6 mb but the downloaded file is down to 307 kb. What is the reason?
 

Jakkee

Plugin Developer
Plugin Developer
Contributor
Jul 28, 2014
1,465
573
113
Australia
I tried them but my file is 6 mb but the downloaded file is down to 307 kb. What is the reason?
What link are you trying to download something from?
I think I have an example of downloading an MP3 somewhere on my PC - I’ll dig this up and post here for you
 
  • Like
Reactions: enes35001