Android Question upload img to server

jaber103

Member
hi to all
i want upload selected img to server but i cant.
selected cod is :

Sub PicChooser_Result(Success As Boolean, Dir As String, FileName As String)
If Success = True Then
Dim inp As InputStream
inp = File.OpenInput(Dir, FileName)
Dim btm As Bitmap
btm.Initialize2(inp)
Log(inp)
ImageView1.SetBackgroundImage(btm)
Else
ToastMessageShow("انجام نشد، دوباره تلاش کنید", True)
End If

End Sub
now upload selected img up to server.
erel tank you .
I do not want cod backend
 

jaber103

Member
Are you running a B4J server?

http servers do not allow file uploading by default. You need to implement it.
hi erel tanks for answer. how implement it?
I am making an Android application and in a part of this application I need the user to upload a photo. I code with B4A. Thank you for guiding me further.
 
Upvote 0
Top