VB.Net how to convert memory stream into jpg on compact framework
I’m using some code that I got off dev buzz to capture a signature in a windows mobile application. I need to be able to save the data to a local sqlce database and post it via a web service so I can display the signature on packing list. The datatype on the database field is image. Currently the raw data is being stored into the database but I would like to convert it into a jpg prior to storing it in the database. How do I convert “stream” into a jpg prior to the save?
Dim stream As System.IO.MemoryStream = _
Dim sigLength As Int32 = CInt(stream.Length)