自动保存blob [英] automatically saving a blob

查看:90
本文介绍了自动保存blob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用recorder.js来录制音频,我想知道是否可以在创建blob后自动将blob保存到本地磁盘上的指定文件夹中。

解决方案

根据定义,浏览器中显示的网页无法访问操作系统 - 包括文件系统,这是出于安全原因(想象一下MS在您浏览时将文件放在您的计算机上对于MSDN中的一些答案)。

但是HTML5包含一个文件API,可以帮助你,但要注意 - 它只能由一些部分实现...

你可以从这里开始: https://developer.mozilla.org/en-US/docs/Web/ API /文件 [ ^

I am using the recorder.js to record audio, i would like to know if its possible to automatically save the blob into a specified folder on the local disk as soon as the blob is created.

解决方案

By definition web page, that displayed in a browser, can not access the OS - including the file system, and that's for security reasons (imagine MS was putting files on your computer while you are browsing for some answer in MSDN).
However HTML5 includes a File API, that can help you, but be aware - it's only implemented by some and partially...
You may start here:
https://developer.mozilla.org/en-US/docs/Web/API/File[^]


这篇关于自动保存blob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆