How to upload image file with correct metadata or EXIF data

According to File Upload example image and other files uploaded as FileStream and didn't contains EXIF data. It is possible upload file using File Upload control that will be contains original EXIF data.

Thanks,

1 Reply

BC Berly Christopher Syncfusion Team March 5, 2020 11:07 AM UTC

Hi Maksym, 
  
Greetings from Syncfusion support. 
  
In the File Uploader component, we can get the filstream of the uploaded file in the server. So, we can get the corresponding EXIF data for the uploaded image file using the third party extractor called “MetaDataExtractor” as mentioned in the below code example. 
  
  
var directories = ImageMetadataReader.ReadMetadata(filename); 
 
    // print out all metadata 
      foreach (var directory in directories) 
          foreach (var tag in directory.Tags) 
            Console.WriteLine($"{directory.Name} - {tag.Name} = {tag.Description}"); 
 
 
  
To know more about this, please refer the below link. 
  
Regards, 
Berly B.C 


Loader.
Up arrow icon