title: Use of Base64 class in JDK7
body: <p>I am trying to use <code>Base64</code> class in JDK 7 but I am getting the error:</p>
  <blockquote>
  <p>Base64 cannot be resolved</p>
  </blockquote>
  <p>Why does eclipse throw this error?</p>
  <p>I am using the code below:</p>
  <pre><code>byte[] imageData = Base64.getDecoder().decode(readFile(imagePart.getInputStream()));
  </code></pre>
  <p>even import statement also shows the same error : <code>import java.util.Base64;</code></p>
  <p>Is this class not available in JDK 7?</p>