write byte buffer streams