I have the file “/assets/avatar.png” which I can access from js, but I need to access this file from a code in a JAVA function, but when trying to open with File myFileLogo = new File ("/ assets / avatar.png ");
Gives the following error /assets/avatar.png: open failed: ENOENT (No such file or directory).
How can I read it from JAVA.
You should give some context of what you’re trying to achieve, otherwise it’s impossible to suggest a solution. Frankly, it’s not clear why you would need to open a file in JAVA.
That said, a good starting point could be looking at
FuseJS/Bundle implementation on fuselibs-public.
Hope this helps!