public static InputStream bytes2InputStream(final byte[] bytes) {
        if (bytes == null || bytes.length <= 0) return null;
        return new ByteArrayInputStream(bytes);
    }
public static InputStream bytes2InputStream ( final byte [ ] bytes ) { if ( bytes == null || bytes . length <= 0 ) return null ; return new ByteArrayInputStream ( bytes ) ; }
byteArr转inputStream

@param bytes 字节数组
@return 输入流