ThoughtVNC Posted December 30, 2020 Share 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." Quote Link to comment Share on other sites More sharing options...
Muffins Posted December 30, 2020 Share 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. Quote Link to comment Share on other sites More sharing options...
ThoughtVNC Posted December 30, 2020 Author Share 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 Quote Link to comment Share on other sites More sharing options...