Skip to content

Instantly share code, notes, and snippets.

@kevinmcmahon
Created April 20, 2011 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinmcmahon/932118 to your computer and use it in GitHub Desktop.
Save kevinmcmahon/932118 to your computer and use it in GitHub Desktop.
_dropnetClient.GetFile(selected.Path, (RestSharp.RestResponse r) => {
try {
using(FileStream fs = new FileStream(filename, FileMode.Create, FileAccess.ReadWrite))
using(BinaryWriter bw = new BinaryWriter(fs))
{
bw.Write(r.RawBytes);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment