I have Page X with a SignaturePad on my Xamarin.Forms app and I save the signature into the database in the following way:
if (!sp.IsBlank)
{
Stream image = await sp.GetImageStreamAsync(SignatureImageFormat.Png);
using (BinaryReader br = new BinaryReader(image))
{
br.BaseStream.Position = 0;
byte[] SignatureImage = br.ReadBytes((int)image.Length);
}
}
I save this byte array in my SQL database table. I navigate to a couple of other pages in my app and then go back to Page X and want to reload all the information into this page from the saved information in the database. How do I reload the Signature? Do I need to save the signature as strokes or points instead? How do I save strokes or points in the database? Some sample code would be really helpful
Thank you.