/**
* 将字节数组转为输出流
*
* @param b
* @return
*/
public static InputStream getInputStreamFromBytes(byte[] b) {
InputStream ret = null;
try {
if (b == null || b.length <= 0) {
log.error("helper:the byte is null or is empty!");
return ret;
}
ret = new ByteArrayInputStream(b);
} catch (Exception e) {
log.error("helper:get inputstream from bytes process error!");
e.printStackTrace();
}
return ret;
}