在javascript中如何一次创建一个blob切片

在javascript中如何一次创建一个blob切片

问题描述:

我研究过HTML5文件阅读器以及在片中读取blob的能力。我想弄清楚如何反过来,用较小的切片创建一个大的blob并将其作为文件写回来。



任何帮助?

I have studied the HTML5 Filereader and the ability to read a blob in slices. I would like to figure out how to do the reverse, to create a large blob out of smaller slices and write it back as a file.

Any help?

Blob [ ^ ]构造函数可以帮助你。

Blob[^] constructor would help you.
Quote:

Blob()

最近返回创建了Blob对象,其内容由参数中给出的值数组的串联组成。

Blob()
Returns a newly created Blob object whose content consists of the concatenation of the array of values given in parameter.



您可以在给定的链接中找到示例。



-KR


You can find the examples in given link.

-KR