Java File Object Create toFile(String base64Code, String targetPath)

Here you can find the source of toFile(String base64Code, String targetPath)

Description

to File

License

Open Source License

Declaration


public static void toFile(String base64Code, String targetPath) throws Exception 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.FileOutputStream;

public class Main {

    public static void toFile(String base64Code, String targetPath) throws Exception {

        byte[] buffer = base64Code.getBytes();
        FileOutputStream out = new FileOutputStream(targetPath);
        out.write(buffer);//from w  w  w .j a  v  a2s .c  o m
        out.close();
    }
}

Related

  1. toFile(InputStream in, File file)
  2. toFile(InputStream inputStream)
  3. toFile(JavaFileObject javaFileObject)
  4. toFile(List filenames)
  5. toFile(Map res, String output)
  6. toFile(String content, File output)
  7. toFile(String context, String fileName, boolean append)
  8. toFile(String fileName)
  9. toFile(String fileName, String content)