Hi
I have a wcf service on my webserver that i have done in vb.net and database access is done with linq.

This service exposes my table so i can use that in my windows mobile application.

My image field is declared as a image in a ms sql-server.

Sample code:
Code:
Dim ws As New wsResa.Resa
        Dim tbl As wsResa.tblStory = New wsResa.tblStory

        Try
            If txtPicture1.Text.Length > 0 Then
                Dim imgStream As MemoryStream = New MemoryStream
                pb1.Image.Save(imgStream, System.Drawing.Imaging.ImageFormat.Jpeg)
                tbl.Picture1.Bytes = imgStream.ToArray
                tbl.Picture1Name = txtPicture1.Text
            End If

            tbl.Header = txtHeader.Text

            ws.addStory(tbl)


When i try to do this i get an error on the row where i set tblPicture1.Bytes = imgStream.toArray.

i have also tried to remove .Bytes on that row and then i get an error saying that a 1 dimension array of bytes cannot be converted to binary.

Anyone haveing some suggestion on how i should do to send the image to the webservice?

Thanks
Sebulba