code: public static void encodeToFile (@Nonnull final byte [] aDataToEncode, final File aFile) throws IOException
    {
      ValueEnforcer.notNull (aDataToEncode, "DataToEncode");
  
      try (final Base64OutputStream bos = new Base64OutputStream (FileHelper.getBufferedOutputStream (aFile), ENCODE))
      {
        bos.write (aDataToEncode);
      }
    }
docs: Convenience method for encoding 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 aDataToEncode
  byte array of data to encode in base64 form
  @param aFile
  File for saving encoded data
  @throws IOException
  if there is an error
  @throws NullPointerException
  if dataToEncode is null
  @since 2.1