How to use Servicestack PostFileWithRequest
问题 I am trying to figure out how to post a file to my webservice using servicestack. I have the following code in my client Dim client As JsonServiceClient = New JsonServiceClient(api) Dim rootpath As String = Server.MapPath(("~/" + "temp")) Dim filename As String = (Guid.NewGuid.ToString.Substring(0, 7) + FileUpload1.FileName) rootpath = (rootpath + ("/" + filename)) FileUpload1.SaveAs(rootpath) Dim fileToUpload = New FileInfo(rootpath) Dim document As AddIDVerification = New AddIDVerification