title: How could I convert a image with letters to text?
body: <p>I need to find letters in a image. I need a help to write an algorithm to decode the image.</p>
  
  <p>I got the image an there is converted in a <code>ByteArrayOutputStream</code> but I don´t know what I do with it.</p>
  
  <p>There is my java code:</p>
  
  <pre><code>URL url = new URL(urlImg);
  WebClient webClient = new WebClient(BrowserVersion.getDefault());
  WebRequest reqImg = new WebRequest(url);
  reqImg.setHttpMethod(HttpMethod.GET);
  InputStream imgStream = webClient.getPage(reqImg).getWebResponse().getContentAsStream();
  BufferedImage img = ImageIO.read(imgStream);
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  ImageIO.write(img, "png", out);
  </code></pre>
  
  <p>Dependencies:
      
      net.sourceforge.htmlunit
      htmlunit
      2.15
      </p>
  
  <p>JDK 1.6.0_43</p>