private byte[] ReadBuffer(SHA1 id)
{
try {
FileStream fs = File.Open (GetObjectFullPath (id), FileMode.Open);
BinaryReader br = new BinaryReader (fs);
// I declared this here to close the stream and reader
byte[] data = Decompress (br.ReadBytes ((int)fs.Length));
br.Close ();
fs.Close ();
return data;
} catch (FieldAccessException e) {
Console.WriteLine ("The file object you are trying to read does not exist {0}", e);
}
return null;
}