Jeremias Märki - 2008-02-28

Logged In: YES
user_id=225352
Originator: NO

I'm sorry I don't have enough time to dive in deeper at the moment, so just a few comments:
- The way you encode the image will definitely not work as the you're using "UTF-8" encoding like this instead of "cp470". Use this instead:
buf.append(new String(byteImage, "cp470")) but no guarantee that this will work. If not all 256 characters of cp470 are mapped to unique value in Unicode, it's not going to work (and I haven't checked). I hope to add support for binary data at some point but lately there's simply too much going on.
- If you have exceptions like the ArrayIndexOutOfBoundsException please try working with the current HEAD version from CVS. I've fixed a number of bugs since the last release. Maybe this is fixed, too.

Good luck! I'm keeping the issue open so I don't forget to look into it when I've got time.