code: protected String getBase64(InputStream in) throws IOException {
  		ByteArrayOutputStream out = new ByteArrayOutputStream();
  		CopyUtil.copy(in, out);
  		return new String(Base64.encodeBase64(out.toByteArray()), "UTF-8"); //$NON-NLS-1$
  	}
docs: Returns a base64 encoded string representation of the contents of the
  resource associated with the {@link URLConnection}.
  
  @param in
  The input stream for the resource
  @return The base64 encoded string representation of the resource
  @throws IOException