public override void PutBlob(Guid guid, string filename, Stream blob)
{
if (blob == null) throw new ArgumentNullException("blob");
string destName;
if (!string.IsNullOrEmpty(filename))
{
destName = Path.Combine(_blobDir, string.Format("{0} - {1}", guid, filename));
}
else
{
destName = Path.Combine(_blobDir, string.Format("{0}.blob", guid));
}
using (var fs = File.OpenWrite(destName))
{
fs.SetLength(0);
blob.CopyAllTo(fs);
}
}