开发者

How to: Converting array of bytes to InputStream

With Apache Commons it is very simple to convert InputStream to byte[],

static byte[] toByteArray(InputStream input)

but I can't find the opposite method. What's the most popular/straightforward way of converting array of bytes to InputStream object?

开发者_JS百科

Thanks in advance.


Take a look at ByteArrayInputStream

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜