Fun with Rotary Encoders

Hey guys, me again. I've been working on the code some more and here's where I'm at now. Taking Paul S's advice I've taken to spitting out bytes from my Arduino and I've created a serialEvent to handle the incoming data. I'll post my code below. But first the errors.

When I run the code I get an endless stream of incoming errors that look like this:

The file "FriendlyFire_null.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.

If I spin the encoder, I get this:

The file "FriendlyFire_
.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.

In the serial port, when I spin the encoder, I get this printed:

7
8
9
1
0
1
1
1
2
1
3

Formatted just like that.

Thanks so much for your help so far. What's my next step?

Here's my code currently:

ARDUINO

#include <QuadEncoder.h>

byte qe1Move=0;
QuadEncoder qe(8,9);

byte count = 0;

void setup() {
    Serial.begin(9600);
}

void loop() {
  qe1Move=qe.hb();
  if (qe1Move=='>')
  {
  count = count + 1;
  Serial.println(count);
  if (count>46)
  {
    count = 0;
  }
  }
  if (qe1Move=='<')
  {
  count = count - 1;
  Serial.println(count);
  if (count<2)
  {
    count = 48;
  }
  }
    //Serial.print(char(qe1Move));
  //else if (qe1Move=='<')
    
    //Serial.print(char(qe1Move));
    //delay(100);
}

PROCESSING

import processing.serial.*;

Serial myPort;  // The serial port
PImage img;
String val;

void setup() {
  size(1280, 1280);
  img = loadImage("FriendlyFire_0.png");
  // List all the available serial ports
  println(Serial.list());
  // Open the port you are using at the rate you want:
  myPort = new Serial(this, Serial.list()[0], 9600);
 
}

void draw() {
  image(img, 0, 0);
  
}

void serialEvent(Serial p) { 
    // Expand array size to the number of bytes you expect
  byte[] inBuffer = new byte[7];
  while (myPort.available() > 0) {
    inBuffer = myPort.readBytes();
    myPort.readBytes(inBuffer);
    if (inBuffer != null) {
      String myString = new String(inBuffer);
      println(myString);
      val = myString;
    }
  }
}