35
rated 0 times
[
38]
[
3]
/ answers: 1 / hits: 18192
/ 8 Years ago, fri, march 25, 2016, 12:00:00
I'm trying to create an image file from chunks of ArrayBuffers.
all= fs.createWriteStream(out.+imgtype);
for(i=0; i<end; i++){
all.write(picarray[i]);
}
all.end();
where picarray
contains ArrayBuffer chunks. However, I get the error
TypeError: Invalid non-string/buffer chunk
.
How can I convert ArrayBuffer chunks into an image?
More From » node.js