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