Tuesday, August 26, 2014

Error when sending deserializing data with image (protobuf)

try something like this



string filename = @"c:\temp\test.txt";
byte[] bytes = File.ReadAllBytes(filename);

List<byte> buffer = new List<byte>(BitConverter.GetBytes((ulong)(bytes.Count())));
buffer.AddRange(bytes);





jdweng


No comments:

Post a Comment