Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

error when trying to paint image

Featured Replies

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."

  • Author
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 :) <3

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.