neilbmclaughlin
Programmer
I need to write a VB routine to put a binary file from an ActiveX running on a client to a WebDAV location using HTTP PUT but I can't use ADO streams. What I need to do is along the lines of:
<SNIP>
Private objHTTP As New WinHttp.WinHttpRequest
Dim lData() As Byte
Open strDestFilePath For Binary As #1
Put #1, , lData()
Close #1
objHTTP.Open "PUT", strURL, False
objHTTP.SetCredentials "test", "test", 1
objHTTP.Send (lData)
<SNIP>
But the objHTTP.Send doesn't seem to accept byte as a
parameter.
Has anyone got any suggestions as to what I'm doing wrong?
Thanks in advance.
Neil McLaughlin
.
<SNIP>
Private objHTTP As New WinHttp.WinHttpRequest
Dim lData() As Byte
Open strDestFilePath For Binary As #1
Put #1, , lData()
Close #1
objHTTP.Open "PUT", strURL, False
objHTTP.SetCredentials "test", "test", 1
objHTTP.Send (lData)
<SNIP>
But the objHTTP.Send doesn't seem to accept byte as a
parameter.
Has anyone got any suggestions as to what I'm doing wrong?
Thanks in advance.
Neil McLaughlin
.