ThoughtVNC Posted December 30, 2020 Posted December 30, 2020 I'm having a permissions error when trying to read with ImageIO. [INFO][Bot #1][12/30 12:46:45 PM]: Loaded 2 built-in random solvers! [ERROR][Bot #1][12/30 12:46:45 PM]: Blocked permission: ("java.io.FilePermission" "resources\biohazard.png\biohazardQuest.png" "write") [INFO][Bot #1][12/30 12:46:45 PM]: Terminating script coconut oil... Here's the code: try { File file = new File("resources\\biohazard.png\\biohazardQuest.png"); FileInputStream fis = new FileInputStream(file); BufferedImage biohazardQuest = ImageIO.read(fis); } catch(IOException e) { log(e); } if anyone has any ideas, please shoot them my way thanks also, when I try to just read directly with this biohazardQuest = ImageIO.read(new File("resources/biohazard.png/biohazardQuest.png")); I face a similar issuse, "can't read input file."
Muffins Posted December 30, 2020 Posted December 30, 2020 I Think that you can only fr / fw from the OSBot data folder (i.e. C:\users\your_name\OSBot\data) , you could always just host the image on imgur though.
ThoughtVNC Posted December 30, 2020 Author Posted December 30, 2020 28 minutes ago, Muffins said: I Think that you can only fr / fw from the OSBot data folder (i.e. C:\users\your_name\OSBot\data) , you could always just host the image on imgur though. ahh i see that would make sense. thanks a lot for your help 1