Arduino Thermal Printer Bitmap To ByteArray Issue w/ 64bits

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
tomsihap
 
Posts: 3
Joined: Fri Jun 13, 2014 9:52 am

Arduino Thermal Printer Bitmap To ByteArray Issue w/ 64bits

Post by tomsihap »

Hello everyone,

I just received my Arduino Little Thermal Printer Pack and I'm running under Mac OS X 10.9.3.
There is a problem with the script given by Adafruit : it is only running with Processing 1.5.1 which runs only with Java JVM 32 bits. Since MacBook Pro are 64 bits, Java 7 32 bits is not longer provided by java.com.

The problem was that when I run the code, I'm given that error message :

Code: Select all

'The method SelectInput(String, String) in the type PApplet is not applicable for the argument (String)'
Here is the part of the code :

Code: Select all

String      filename, basename;
PImage      img;
...
// Select and load image
filename   = selectInput("Select image file to convert:");
println("Loading image...");
img        = loadImage(filename);
Which is weird because selectInput returns void or a String.

So I wrote that code instead :

Code: Select all

  // Select and load image
  img        = loadImage("test.bmp");
  filename = "test.bmp";
And now it works by putting the image file into SKETCH_FOLDER/data/.

But it is not so convenient and I don't know a lot about Java and Processing, anybody have a solution to have back the file-select prompt ?

Thanks a lot, and sorry for my languages mistakes if ever, english is not my mother tongue.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino Thermal Printer Bitmap To ByteArray Issue w/ 64b

Post by adafruit_support_rick »

Hmmm ... I don't know why you're having this problem. I just ran Processing 1.5.1 on my MBP under MacOSX 10.9.3, and it ran just fine. I converted a bitmap with the bitmapImageConvert sketch.

tomsihap
 
Posts: 3
Joined: Fri Jun 13, 2014 9:52 am

Re: Arduino Thermal Printer Bitmap To ByteArray Issue w/ 64b

Post by tomsihap »

About your MBP, could you confirm that you run it under the x64 one ?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino Thermal Printer Bitmap To ByteArray Issue w/ 64b

Post by adafruit_support_rick »

Not sure what you mean. Tell me where to look?

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”