add array buffer conversion for bitstream