Fetching data from the web with C#, the easy way (1-liner)

I don’t know why the top results from Google always involve more than 10 lines of code and loads of comments when actually you can just do this:

byte[] Data = new WebClient().DownloadData(FrameURL);

You can try DownloadString and DownloadFile based on your requirements

Leave a Reply

Your email address will not be published. Required fields are marked *