I'm saving the inkcavas strokes inside an byte[] and using a field inside a database do store it.
So far it's working. I can store and retrieve the strokes.
But I also need to print it in a PDF file. I'm using migradoc to do so, and it's not working.
If I store an image like jpg or gif inside the database, I can retrieve it and print it into pdf, but the same doesn't apply to ink strokes. I believe it's because the format.
//Instanciating an memory stream from byte[]
System.IO.MemoryStream myMemStream = new System.IO.MemoryStream(myByteArr);
//Trying to convert it into image, here's where the error happens if the array contains strokes.
//It works if I use another image format
System.Drawing.Image fullsizeImage = System.Drawing.Image.FromStream(myMemStream);