Here you can find the source of byteTOInputStream(byte[] in)
Parameter | Description |
---|---|
in | a parameter |
Parameter | Description |
---|---|
Exception | an exception |
public static InputStream byteTOInputStream(byte[] in) throws Exception
//package com.java2s; import java.io.ByteArrayInputStream; import java.io.InputStream; public class Main { /**/*www. j a v a 2 s . c om*/ * byte array to InputStream * * @param in * @return * @throws Exception */ public static InputStream byteTOInputStream(byte[] in) throws Exception { ByteArrayInputStream is = new ByteArrayInputStream(in); return is; } }