Created
December 12, 2012 11:40
-
-
Save tiernano/4267157 to your computer and use it in GitHub Desktop.
take a compressed protobuf file (local), uncompress and then deserialize
This file contains hidden or 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
using (FileStream fs = new FileStream(location, FileMode.Open)) | |
{ | |
using (GZipStream gz = new GZipStream(fs, CompressionMode.Decompress)) | |
{ | |
var result = Serializer.Deserialize<objectType>(gz); | |
//work with result here... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment