Ejemplo n.º 1
0
 public byte[] ExportMetadata(PostedDataDto postedData)
 {
     using (MetadataContext context = new MetadataContext(metadataConfiguration.GetAbsolutePath(postedData.guid), postedData.password))
     {
         return(context.ExportProperties());
     }
 }
Ejemplo n.º 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());
         }
 }