Buffer.buffer contains incorrect data
misty000 opened this issue · 2 comments
misty000 commented
misty000 commented
no matter what the base64 string is, Buffer.buffer is always the same
Brakebein commented
First, I wasn't sure about what the issue is, since Buffer.buffer
is of course an instance of ArrayBuffer
. But I actually have one test file which failed to load and I couldn't find the reason why, even though other files from the same converter output didn't cause any issues. So, node.js Buffer.from(string[, encoding])
obviously has some problems with binary data. The base64-js
package did the trick and my problematic gltf file finally loaded. So, thanks for pointing out.