protected override Task PutAttachment(AttachmentExportInfo attachmentExportInfo)
{
if (attachmentExportInfo != null)
{
// we filter out content length, because getting it wrong will cause errors
// in the server side when serving the wrong value for this header.
// worse, if we are using http compression, this value is known to be wrong
// instead, we rely on the actual size of the data provided for us
attachmentExportInfo.Metadata.Remove("Content-Length");
_database.PutStatic(attachmentExportInfo.Key, null, new MemoryStream(attachmentExportInfo.Data),
attachmentExportInfo.Metadata);
}
return new CompletedTask();
}