I have a Windows CE4.2 application which uses the OpenNetCF Library of controls, one of which is the signature control. When a user enters their signature and saves it I put the signature into a byte array using the 'GetSignatureEx' method and store it in an Image datatype in Sql Server 2000. This works fine and im able to save and view signatures using the Signature control, however I have a requirement to view the Signature from a standard Desktop application (full 1.1 framework). When i read in the byte array to a memory stream and use the FromStream method to create an Image I get an Invalid Parameter error.
Heres the code giving me grief:
Dim mem As New IO.MemoryStream(myByteArray)
mem.Write(myByteArray, 0, myByteArray)
lblSigned.Image = Image.FromStream(mem)
Does anyone have much experience using the openNetCf Signature control?
I suspect its something to do with the way the control stores the image is the byteArray when it is first saved.
Thanks for your help,