Make sure you use Uint8Array objects.