开发者

How to: Converting array of bytes to InputStream

开发者 https://www.devze.com 2023-03-20 06:52 出处:网络
With Apache Commons it is very simple to convert InputStream to byte[], static byte[] toByteArray(InputStream input)

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

精彩评论

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

关注公众号