code: public static Document parseBase64(String base64Data, Element instruction)
              throws Exception {
          byte[] imageData = Base64.decodeBase64(base64Data);
          ByteArrayInputStream bais = new ByteArrayInputStream(imageData);
          StringWriter swLogger = new StringWriter();
          PrintWriter pwLogger = new PrintWriter(swLogger);
          return parse(bais, instruction, pwLogger);
      }
docs: /*
  Parse a string of base64 encoded image data. 2011-09-08 PwD