public static void decodeBase64ToFile(final String inString, final File outFile) {
        FileOutputStream out = null;
        try {
            out = new FileOutputStream(outFile);
            decodeBase64ToStream(inString, out);
        } catch (final IOException e) {
            Log.e("HtmlImage.decodeBase64ToFile: cannot write file for decoded inline image", e);
        } finally {
            IOUtils.closeQuietly(out);
        }
    }
Decode a base64-encoded string and save the result into a file.

@param inString the encoded string
@param outFile  the file to save the decoded result into
main/src/main/java/cgeo/geocaching/utils/ImageUtils.java