Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to convert outputstream to bytearrayoutputstream in java

ByteArrayOutputStream bos = new ByteArrayOutputStream();
    
//Write the data to the byte array output stream here
	
byte[] arr = bos.toByteArray();
//write the byte stream to the output stream
os.write(arr);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #outputstream #bytearrayoutputstream #java
ADD COMMENT
Topic
Name
4+2 =