Robert B.: responseType ArrayBuffer

Beitrag lesen

Moin,

wenn ich die offizielle Dokumentation des String-Typs in PHP sowie des ArrayBuffer-Typs als responseType richtig verstehe, dann sollte doch String deine Anforderung erfüllen:

PHP

The string in PHP is implemented as an array of bytes and an integer indicating the length of the buffer. It has no information about how those bytes translate to characters, leaving that task to the programmer. There are no limitations on the values the string can be composed of; in particular, bytes with value 0 (“NUL bytes”) are allowed anywhere in the string […]

This nature of the string type explains why there is no separate “byte” type in PHP – strings take this role.

WhatWG

ArrayBuffer: An object that holds a pointer (which may be null) to a buffer of a fixed number of bytes

Viele Grüße
Robert