Skip to content

Instantly share code, notes, and snippets.

@SumindaD
Created January 5, 2020 07:41
Show Gist options
  • Save SumindaD/e43f5ace9d3af91168836047a6eaa04f to your computer and use it in GitHub Desktop.
Save SumindaD/e43f5ace9d3af91168836047a6eaa04f to your computer and use it in GitHub Desktop.
/// <summary>
/// Retrieve the image data from the signed xml document
/// </summary>
/// <param name="xmlFilePath">Path to the signed xml image document</param>
/// <returns>Byte[] of the image</returns>
public static byte[] GetImage(string xmlFilePath)
{
var unsignedXMLDocument = UnsignXMLDocument(xmlFilePath);
return DeserializeXMLToImage(unsignedXMLDocument);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment