I need send a image with a Post
In a Headers need put a Parameters HASH & USER
i try this code bad dont work.... message error: "User not supplied"
In a Headers need put a Parameters HASH & USER
i try this code bad dont work.... message error: "User not supplied"
B4X:
Dim j As HttpJob
j.Initialize("", Me)
Dim fd As MultipartFileData
fd.Initialize
fd.KeyName = "file"
fd.Dir = File.DirInternal
fd.FileName = "file.jpg"
fd.ContentType = "image/jpg"
j.PostMultipart(posturl, CreateMap("hash": hash,"user": nick), Array(fd))
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Log(j.GetString)
End If
j.Release