Convert Buffer to ArrayBuffer