B4J Question Assets file does not exist?

DonManfred

Expert
Licensed User
Longtime User
b4jassets0065.png

As you can see the drivers.hex file is in the Files tab listed.
But when i want to access them i get a file not found (see log in screen).

I´m sure i´m doing some stupid mistake but i can´t find it by myself :-/

If i look into the generated .jar then i can see the file in the Files folder
 

DonManfred

Expert
Licensed User
Longtime User
However you know that the file exists.
Ok.
I just skipped the file exist check and just read the file with Inputstream into a bytearray. This works.

Both File.Exists and File.Size do not work with assets file.
Ohh, i should have looked deeper in documentation. :oops::mad::D
 
Upvote 0
Top