Read and write byte arrays directly