Created
March 24, 2015 19:42
-
-
Save lnmunhoz/d002d4fd5f81bf7dacea to your computer and use it in GitHub Desktop.
Save FileStream into Disk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file is our stream | |
var fileStream = File.Create(@"..\"+ file.FileName, (int) file.Length); | |
var bytesInStream = new byte[file.Length]; | |
file.Read(bytesInStream, 0, bytesInStream.Length); | |
fileStream.Write(bytesInStream, 0, bytesInStream.Length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment