I need to perform an http put against a web service. I have been using postfile successfully for other requests. That does a post though, not a put correct? I don't see any put's in there or the httpjob, and put seems to be a discounted search term here in the forum.
I got it. Added a new sub to httpjob which is basically a copy of postfile.
B4X:
Public Sub PutFile(Link As String, Dir As String, FileName As String)
Dim length As Int
If Dir = File.DirAssets Then
Log("Cannot send files from the assets folder.")
Return
End If
length = File.Size(Dir, FileName)
Dim In As InputStream
In = File.OpenInput(Dir, FileName)
req.InitializePut(Link, In, length)
CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me)
End Sub