Pass Byte Array to web service

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.
 
M

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top