I was about to throw the job and getting crazy, searching for solution in every corner of the forum.
thinking that the ContentChooser was the problem, trying every solution posted:
I always getting error:
The problem was not the file or the path, it was this simple code:
Job.GetString or j.GetString
when deleted all works more than fine.
I think this is a bug, because the error at log its not related to file.
I LOST ABOUT 4 HOURS TRYING TO SOLVE THIS, I HOPE THIS HELPS ANYONE.
thinking that the ContentChooser was the problem, trying every solution posted:
B4X:
j.Initialize( "j", Me)
Dim fd As MultipartFileData
fd.Initialize
fd.KeyName = "img"
fd.Dir = File.DirInternalCache
fd.FileName = "sometempfile.jpg"
fd.ContentType = "image/jpg"
j.PostMultipart("http://server.net", CreateMap("param1": "value1","":"","":""), Array(fd))
if j.success then
log(j.getString)
end if
I always getting error:
B4X:
java.io.FileNotFoundException: open failed: ENOENT (No such file or directory).....
....
The problem was not the file or the path, it was this simple code:
Job.GetString or j.GetString
when deleted all works more than fine.
I think this is a bug, because the error at log its not related to file.
I LOST ABOUT 4 HOURS TRYING TO SOLVE THIS, I HOPE THIS HELPS ANYONE.