Home All Groups Group Topic Archive Search About

Pass Byte Array to web service

Author
6 Jun 2006 9:20 PM
kmercer46
I have the byte array generated and I also have the web service
generated what i need to know is how to pass a byte array to the web
service itself any help would be appreciated.

Author
7 Jun 2006 3:27 AM
Mike McIntyre
Here is are examples that show how to receive or return a byte array via a web service.

<WebMethod()> Public Function ReturnDocument(ByVal documentID As String) As Byte(' Retrieve a document stored in binary format from a database

    ' Return the document as a byte array

End Function



<WebMethod()> Public Sub ProcessByteArray(ByVal pByteArray As Byte(), ByVal documentID As String)

    ' Store the document - uploaded as a byte array - in binary format in database.

End Sub



Show quoteHide quote
<kmerce***@yahoo.com> wrote in message news:1149628832.419645.137770@f6g2000cwb.googlegroups.com...
>I have the byte array generated and I also have the web service
> generated what i need to know is how to pass a byte array to the web
> service itself any help would be appreciated.
>