Skip to content

Step 2 - Use arraybuffer for binary files in Web IDE

Paul Slaughter requested to merge ps-step-2-use-array-buffer-for-binary into master

What does this MR do?

In the upcoming Live Preview enhancement we will handle fetch requests in the Live Preview environment from the IDE itself.

It looks like when axios turns binary content into a String, it does so in a lossy way. To make sure we have the right content to send back to the Live Preview service worker, we need to tell axios to handle these as an arraybuffer.

Screenshots (strongly suggested)

Opening binary files still works

Screen_Shot_2020-12-17_at_1.57.38_AM

Does this MR meet the acceptance criteria?

Conformity

Edited by Paul Slaughter

Merge request reports