How do I postbytes using httputils2 please. I have been stepping through the flicker tut and adapting it to learn from it but am stuck. I want to do a post request.
The Link has been formed into a bona fide url . The Text as string has been processed through Text.Bytes("UTF8") All this has been passed to
Now when I go to amend
I am stuck. Instead of
I want to
As far as I can tell job.PostBytes wants a Link as a string and Data as a byte array. But these have not been passed to the sub SubmitJob. Please Help. Many thanks.
The Link has been formed into a bona fide url . The Text as string has been processed through Text.Bytes("UTF8") All this has been passed to
B4X:
Public Sub PostBytes(Link As String, Data() As Byte)
mLink = Link
req.InitializePost2(Link, Data)
CallSubDelayed2(HttpUtils2Service, "SubmitJob", req)
End Sub
Now when I go to amend
B4X:
Public Sub SubmitJob(job As HttpJob) As Int
End Sub
I am stuck. Instead of
B4X:
hc.Execute(job.GetRequest, taskCounter)
I want to
B4X:
hc.Execute(job.PostBytes
As far as I can tell job.PostBytes wants a Link as a string and Data as a byte array. But these have not been passed to the sub SubmitJob. Please Help. Many thanks.