Android Question MultipartPost Wait For, Upload Image PHP

rscheel

Well-Known Member
Licensed User
Longtime User
Hello, as the title says, some example of how to implement MultipartPost with Wait For, I want to upload 2 images to my server with this method.

Thankful for your help.
 

rscheel

Well-Known Member
Licensed User
Longtime User
B4X:
Dim j As HttpJob
j.Initialize("", Me)
Dim mp As MultipartFileData
mp.Initialize
mp.Dir = File.DirAssets
mp.FileName = "SomeFile.jpg"
mp.KeyName = "file"
j.PostMultipart("http://www.example.com", Null, Array(mp))
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
   Log(j.GetString)
End If
j.Release


Thank you Erel is just what I was looking for.
 
Upvote 0
Top