byte[] rawdata = getRawData(); byte[] imgdata = new byte[rawdata.length-17]; System.arraycopy(rawdata, 17, imgdata, 0, imgdata.length); return imgdata;
ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] checksum = getChecksum(data); out.write(checksum); out.write(0); out.write(data); setRawData(out.toByteArray());