Douglas Farias Expert Licensed User Longtime User May 21, 2014 #1 Code: Copy Dim cc as ContentChooser Sub puxafoto cc.Initialize("cc") cc.Show("image/*", "Selecionar Imagem") End Sub Sub cc_Result (Success As Boolean, Dir As String, FileNames As String ) If Success Then mgsbox(FileNames, "test") End if End sub i make this code sample to chooser image and it return me crazy image names exemple image%3A1444 casa%3A1444 and no .png and jpg files =( how can i fix? Last edited: May 21, 2014
Code: Copy Dim cc as ContentChooser Sub puxafoto cc.Initialize("cc") cc.Show("image/*", "Selecionar Imagem") End Sub Sub cc_Result (Success As Boolean, Dir As String, FileNames As String ) If Success Then mgsbox(FileNames, "test") End if End sub i make this code sample to chooser image and it return me crazy image names exemple image%3A1444 casa%3A1444 and no .png and jpg files =( how can i fix?
Erel B4X founder Staff member Licensed User Longtime User May 22, 2014 #2 These are the identifiers as returned from the content provider. What do you want to do with the image? Upvote 0
These are the identifiers as returned from the content provider. What do you want to do with the image?
Douglas Farias Expert Licensed User Longtime User May 22, 2014 #3 i want upload this image to my server but in my php page receive only .jpg and png when i choose a image from galery its go image%3A1444 casa%3A1444 and not .jpg %3A1444 Upvote 0
i want upload this image to my server but in my php page receive only .jpg and png when i choose a image from galery its go image%3A1444 casa%3A1444 and not .jpg %3A1444
Shahid Saeed Active Member Licensed User Longtime User May 22, 2014 #4 try this: fullpath is the path to your image file. Code: Copy Sub GetFileName(fullpath As String) As String Return fullpath.SubString(fullpath.LastIndexOf("/")+1) End Sub Upvote 0
try this: fullpath is the path to your image file. Code: Copy Sub GetFileName(fullpath As String) As String Return fullpath.SubString(fullpath.LastIndexOf("/")+1) End Sub
Erel B4X founder Staff member Licensed User Longtime User May 22, 2014 #5 See this thread: Get the path to media files returned from ContentChooser Upvote 0