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
In http/s sources, binary contents are specified by setting headers defined within MIME-type spec (RFC-2045). While data is serialized to text format during transmission, at client's app level is received as binary content.
By enabling binary data at the Witnet protocol level, either hash() or toString() reducers would be available within data requests.
The text was updated successfully, but these errors were encountered:
If the first operator of the script expects bytes as the input, use body_bytes
Otherwise, use body_string
The only problem is that we cannot access the request headers from RADON to read the content type, so converting the bytes into a string later will only be possible if we know the encoding ahead of time when creating the script. Similarly, when converting string to bytes we need to specify an encoding somehow. But encodings other than UTF8 are not supported yet, so that can be another issue.
The text was updated successfully, but these errors were encountered: