I bought the bundle and I’m happy with it.
But now I’m trying to use the PercentDone event. I’m doing a HTTP PUT with picture data in the body (http.LoadBodyFromFile) and it’s working fine.
However, the data can be quite heavy (a few Mb) and I’d like to show a progress bar.
I tried to follow the doc, creating a subclass of chilkat.http: myHTTP, with a method: PercentDone
Sub PercentDone(pct_Done As Int32, abort As Boolean) System.DebugLog(CurrentMethodName + " " + str(pct_Done)) End Sub
Here’s a summary of the http request method:
Dim ckHttp As new myHttp ‘ subclass of Chilkat.Htpp Dim ckHttpReq As new Chilkat.HttpRequest Dim ckHttpResp As Chilkat.HttpResponseckHttp.OAuth1 = True ‘here the others ckHttp.OAuthxxx parameters
ckHttpReq.HttpVerb = "PUT" ‘ Test file ils loaded If ckHttpReq.LoadBodyFromFile(pic.NativePath) then ckHttp.PercentDoneScale = 100 ckHttpResp = ckHttp.PostUrlEncoded(baseURL, ckHttpReq)
‘ here comes the processing of the http response
End If
This is working fine but the PercentDone method is never called, even for large files.
I guess I’m missing something.