Compact Framework - How to convert StreamWriter File saved into text file to byte[]

Asked By Luis Cedeno on 30-Jan-14 01:33 PM

Hi Robbe,

Reading your interesting article .NET Compact Framework Save Handwritten Signature To File, i had a doubt, it is how to convert the resulting text file to byte[].
It is to store the signature captured in the mobile device and stored it on SQL Server 2008 R2  by Web Service, the web service receives a byte[] parameter which contain the signature.

Thanks a lot, regards from Costa Rica

Robbe Morris replied to Luis Cedeno on 30-Jan-14 05:32 PM
I'd bet your web service is expecting the signature in the form of an image.  So, you can't just convert the text file to a byte[].  You'd have to send the saved image instead.  I don't know if the modern day compact framework supports that yet.