I need to remove metadata from an image file which I am reading as a FileStream
var loadOption = new LoadOptions(GroupDocs.Metadata.Common.FileFormat.Jpeg);
using (var metadata = new Metadata(fileStream, loadOption))
{
var affected = metadata.Sanitize();
metadata.Save(outStream);
}
Error: ‘metadata.Sanitize()’ threw an exception of type 'System.NotSupportedException’
The metadata from the image i used can be deleted by this link so the image is a valid image, but i can’t remove the metadata using the above code.