Here you can find the source of base64StrToStream(String base64Str)
public static InputStream base64StrToStream(String base64Str) throws IOException
//package com.java2s; //License from project: Open Source License import sun.misc.BASE64Decoder; import java.io.*; public class Main { public static InputStream base64StrToStream(String base64Str) throws IOException { if (base64Str == null) { throw new NullPointerException(); }/*from ww w .j ava2s. co m*/ BASE64Decoder decoder = new BASE64Decoder(); byte[] b = decoder.decodeBuffer(base64Str); return byteTostream(b); } public static InputStream byteTostream(byte[] buf) { return new ByteArrayInputStream(buf); } }