code: private void writeImageDataHexEncoded(final OutputStream bab) throws IOException
      {
      	int cnt = 0;
      	for(int k = 0; k < imageData.length; k++) {
      		final byte[] chunk = imageData[k];
  			for(int x = 0; x < chunk.length; x++) {
  				bab.write(byte2charLUT, (chunk[x]&0xff)*2, 2);
  				if(++cnt == 64) {
  					bab.write('\n');
  					cnt = 0;
  				}
  			}
  		}    	
     		if(cnt > 0) bab.write('\n');
      }
docs: Writes the image data to the given buffer as hex encoded text.
  
  @param bab
  @throws IOException