We are trying to read and recognize DATAMATRIX barcodes (kept as png image) using the "ClamshellCldcPhone1" device that comes with "Netbeans bundled with Java Platform Micro Edition SDK 3.0" emulator. But the read() method in BarCodeReader class is always returning false. PFB the code –
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
BarCodereader br = new BarCodeReader(Image.createImage("/barcode.png"));
if(br.read())
{
System.out.println("CodeText: " + br. getCodeText().toString());
System.out.println("Symbology: " + br.getReadType());
}
Can you please let me know whether the evaluation jar for J2ME supports DATAMATRIX recognition? Can you provide sample code on this?