You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the raw bytes of an Http request callback include a 0x00 byte, the string which gets sent to the onData() function is terminated and the data is dropped. Ex:
Obviously you can't do anything about \0 in strings, but the Http request callback should be worked with so it doesn't drop data. Right now it forces all data into a string, so there's nothing a user can do with the binary. flash.net.URLLoaderDataFormat gives you the option to get the raw binary instead of text for this reason among others.
Maybe have the request come in as binary data, and loop through it to form a string with each \0 dropped? Or make onData take a dynamic and output the Bytes directly.
Tested in (openfl) flash and js.
The text was updated successfully, but these errors were encountered:
When the raw bytes of an Http request callback include a 0x00 byte, the string which gets sent to the
onData()
function is terminated and the data is dropped. Ex:Obviously you can't do anything about \0 in strings, but the Http request callback should be worked with so it doesn't drop data. Right now it forces all data into a string, so there's nothing a user can do with the binary.
flash.net.URLLoaderDataFormat
gives you the option to get the raw binary instead of text for this reason among others.Maybe have the request come in as binary data, and loop through it to form a string with each \0 dropped? Or make
onData
take a dynamic and output the Bytes directly.Tested in (openfl) flash and js.
The text was updated successfully, but these errors were encountered: