public byte[] ExportMetadata(PostedDataDto postedData) { using (MetadataContext context = new MetadataContext(metadataConfiguration.GetAbsolutePath(postedData.guid), postedData.password)) { return(context.ExportProperties()); } }
public byte[] ExportMetadata(PostedDataDto postedData) { using (var inputStream = fileService.GetFileStream(postedData.guid)) using (MetadataContext context = new MetadataContext(inputStream, postedData.password)) { return(context.ExportProperties()); } }