Problem with Port in ARDUINO/Processing

Hi,
This was a good solution and it worked!!The thing is that I send a byte to ARDUINO which I know which byte is and then I confirmed and send back to Processing. My challenge now is to send 256 unknown bytes and confirm that arrived to ARDUINO and then send them back and print them in processing. My programming skills are not so good,so might post some pieces of code later on, but thanks for the nice solution!