title: Capture image from IP Camera with Java
body: <p>I want to capture image from IP Camera with Java. The IP-Camera is protected with user and password. The examples I've found are using the library from sun.*, but I would rather not use this in my code. Looking at the sourcecode of <a href="http://blog.marcnuri.com/blog/defaul...e/2007/09/13/Viewing-and-storing-images-from-an-IP-Camera" rel="nofollow">this program</a> (<a href="http://blog.marcnuri.com/blog/defaul...e/2007/09/13/Viewing-and-storing-images-from-an-IP-Camera" rel="nofollow">IP-Camera image storing</a>), it uses an encoder from the <code>sun.*</code> packages, which I would rather not use in my code: </p>
  
  <p>My problem is with this line: </p>
  
  <pre><code>String encoding = new Base64Encoder(userPassword).processString();
  </code></pre>
  
  <p>Does anybody have a suggestion as to how I can do this without using this package? </p>