Pass Byte Array to web service

  • Thread starter Thread starter kmercer46
  • Start date Start date
K

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.
 
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
 
Back
Top