
Send a word document to the webserver?
Hi Randy
Try,
sender)
set strm1=createobject("adodb.stream")
With strm1
.Type = 1
.Open
.LoadFromFile "c:\x.doc"
End With
set xh=createobject("msxml2.xmlhttp")
xh.open "post","http://localhost/xbin.asp",false
xh.send strm1.read
msgbox xh.responseText
receiver)
<%
set strm2=createobject("adodb.stream")
With strm2
.Type = 1
.Open
.Write Request.BinaryRead(Request.TotalBytes)
.SaveToFile "c:\mysite\share\x2.doc"
End With
Response.Write "ok"
%>
The related folder should allow read/write access to network users.
Quote:
> How do I send a local file to a given directory on the webserver using
ASP?
> Thanks in advance.
> Randy