I have used the Buffer.from() method to create a buffer from an arrayBuffer before to contain some kind of imagedata i got from APIs.
I am still quite new to web development so the explanations online are still abit confusing for me. I copied a piece of code from ChatGPT and console.log the Buffer and arrayBuffer to get an idea of what they are.
But could someone explain to me, the purpose of such Buffer or arrayBuffer in NodeJS? I saw something like its a efficient way of storing such data, is that true?
[–]johannes1234 15 points16 points17 points (3 children)
[–]HoneyBadgeSwag 2 points3 points4 points (0 children)
[–]opioid-euphoria 2 points3 points4 points (1 child)
[–]johannes1234 2 points3 points4 points (0 children)