Here you can find the source of byteToInputSteram(byte[] data)
public static InputStream byteToInputSteram(byte[] data)
//package com.java2s; import java.io.*; public class Main { public static InputStream byteToInputSteram(byte[] data) { InputStream is = null;/*w w w . j a v a2 s. c om*/ if (null != data && data.length > 0) { is = new ByteArrayInputStream(data); } return is; } }