code: public static void decodeToFile(String dataToDecode, String filename) throws IOException {
  		Base64.OutputStream bos = null;
  		try {
  			bos = new Base64.OutputStream(new FileOutputStream(filename), Base64.DECODE);
  			bos.write(dataToDecode.getBytes(PREFERRED_ENCODING));
  		} catch (IOException e) {
  			throw e; // Catch and throw to execute finally{} block
  		} finally {
  			try {
  				if (bos != null) {
  					bos.close();
  				}
  			} catch(Exception e) {
  			}
  		}
  	}
docs: Convenience method for decoding data to a file.
  
  <p>As of v 2.3, if there is a error, the method will throw an IOException.
  <b>This is new to v2.3!</b> In earlier versions, it just returned false, but
  in retrospect that's a pretty poor way to handle it.</p>
  
  @param dataToDecode Base64-encoded data as a string
  @param filename Filename for saving decoded data
  @throws java.io.IOException if there is an error
  @since 2.1