Here you can find the source of getInputStreamFromEncodedStr(String encodedDetails)
public static InputStream getInputStreamFromEncodedStr(String encodedDetails) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import sun.misc.BASE64Decoder; public class Main { public static InputStream getInputStreamFromEncodedStr(String encodedDetails) throws IOException { BASE64Decoder decoder = new BASE64Decoder(); byte b[] = decoder.decodeBuffer(encodedDetails); return new ByteArrayInputStream(b); }//ww w. j a va2s .c o m }