在javascript中如何一次创建一个blob切片 [英] In javascript how can I create a blob a slice at a time
本文介绍了在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 [< a href =https://developer.mozilla.org/en-US/docs/Web/API/Blobtarget =_ blanktitle =新窗口> ^ ]构造函数可以帮助你。
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
这篇关于在javascript中如何一次创建一个blob切片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文