B4J Question [ABMaterial] Selected file URI

yiankos1

Well-Known Member
Licensed User
Longtime User
Hello,

I would like to get the path and name of a selected file(image). I tried ABMFileInput, ABMUpload but path is not exposed somehow.

I tried ABMImage:

B4X:
    Dim imgGym As ABMImage
    imgGym.Initialize(page, "imgGym", "../images/placeholder.png", 1)
    imgGym.FilePicker=True
    imgGym.IsResponsive=True
    page.Cellr(1,1).AddComponent(imgGym)
setting FilePicker to true.

B4X:
Sub imgGym_ImagePicked(urlData As String)
    Log(urlData)
End Sub

When i select an image i get this:
B4X:
blob:https://localhost:8081/762d079a-bb67-44e0-9b42-04c77b81ede9
Image is shown correctly.

But I don't want to be uploaded, i just want filepath and name.

Any ideas whould be appreciated.

Thank you for your time.
 
Top