cambopad Active Member Licensed User Longtime User Nov 6, 2015 #1 Hi all Today I try to load the bitmap which has a name like this "9o4RLEUFMno.jpg" from Dir.Assets. But it says the file doesn't exist with the following message: Code: java.io.FileNotFoundException: 9o4rleufmno.jpg In fact, this file do exist in the "Files" folder. This is the codes I used to load the bitmap: Code: Dim mybmp As Bitmap=LoadBitmap(File.DirAssets,"9o4RLEUFMno.jpg") The error message seems to return the file name in lowercase! So is it a must to name the files to be placed in "Files" folder in lowercase?
Hi all Today I try to load the bitmap which has a name like this "9o4RLEUFMno.jpg" from Dir.Assets. But it says the file doesn't exist with the following message: Code: java.io.FileNotFoundException: 9o4rleufmno.jpg In fact, this file do exist in the "Files" folder. This is the codes I used to load the bitmap: Code: Dim mybmp As Bitmap=LoadBitmap(File.DirAssets,"9o4RLEUFMno.jpg") The error message seems to return the file name in lowercase! So is it a must to name the files to be placed in "Files" folder in lowercase?
eurojam Well-Known Member Licensed User Longtime User Nov 6, 2015 #2 You should add the file to the File Manager before using it. Filenames are case sensitive Upvote 0
MaFu Well-Known Member Licensed User Longtime User Nov 6, 2015 #3 All files in the "Files" folder should have only lowercase names, otherwise it may not found. Upvote 0
cambopad Active Member Licensed User Longtime User Nov 7, 2015 #4 eurojam said: You should add the file to the File Manager before using it. Filenames are case sensitive Click to expand... Thanks you ! I have a lot of files to be added to "Files" folder, so I rarely use File Manager to add them. I know the file names are case sensitive as the Android OS itself treats upper case and lower case name differently. Upvote 0
eurojam said: You should add the file to the File Manager before using it. Filenames are case sensitive Click to expand... Thanks you ! I have a lot of files to be added to "Files" folder, so I rarely use File Manager to add them. I know the file names are case sensitive as the Android OS itself treats upper case and lower case name differently.
cambopad Active Member Licensed User Longtime User Nov 7, 2015 #5 MaFu said: All files in the "Files" folder should have only lowercase names, otherwise it may not found. Click to expand... I really wonder about this because I used to have many files with Uppercase letters in their names, but the file can be found correctly! Upvote 0
MaFu said: All files in the "Files" folder should have only lowercase names, otherwise it may not found. Click to expand... I really wonder about this because I used to have many files with Uppercase letters in their names, but the file can be found correctly!
Erel B4X founder Staff member Licensed User Longtime User Nov 8, 2015 #6 The IDE automatically changes the case of asset files to lower case. The same thing happens when you load the file at runtime. The string is converted to lower case. Just click on the Sync button in the files tab and it will work properly. Upvote 0
The IDE automatically changes the case of asset files to lower case. The same thing happens when you load the file at runtime. The string is converted to lower case. Just click on the Sync button in the files tab and it will work properly.
cambopad Active Member Licensed User Longtime User Nov 9, 2015 #7 Erel said: The IDE automatically changes the case of asset files to lower case. The same thing happens when you load the file at runtime. The string is converted to lower case. Just click on the Sync button in the files tab and it will work properly. Click to expand... Oh I see! Thanks you Erel! Upvote 0
Erel said: The IDE automatically changes the case of asset files to lower case. The same thing happens when you load the file at runtime. The string is converted to lower case. Just click on the Sync button in the files tab and it will work properly. Click to expand... Oh I see! Thanks you Erel!