using System;
using System.IO;
using System.Text;
public static class CompressionUtility
{
///
/// Convert abyte array into a string
///
/// Byte array to convert
/// String constructed from bytes
public static string ConvertBytesToString(byte[] bytes)
{
string output = String.Empty;
MemoryStream stream = new MemoryStream(bytes);
stream.Position = 0;
using (StreamReader reader = new StreamReader(stream))
{
output = reader.ReadToEnd();
}
return output;
}
}