Comments (2)
this.cosInstance.getObject({
Bucket: this.bucket, /* 必须 */
Region: this.region, /* 存储桶所在地域,必须字段 */
Key: url, /* 必须 */
DataType: 'blob',
}, (err, data) => {
// console.log(err || data);
if (data) {
resolve(this.str2ab(data.Body));
} else {
reject(err);
}
});
具体现象是,下载时控制台出现大量的报错信息,下载时间大大超出了视频文件大小的时间,并且data.Body仍然是个字符串
from cos-js-sdk-v5.
sdk版本多少?data.Body仍然是个字符串可能是DataType: 'blob'参数没有生效
from cos-js-sdk-v5.
Related Issues (20)
- Blob is not defin HOT 1
- update cos-js-sdk-v5 打包报错 HOT 2
- cos-js-sdk-v5 打包出错了 HOT 6
- @xmldom/xmldom 包更新 HOT 2
- 使用官方 cos.uploadFiles 导致频繁调用 getAuthorization HOT 5
- ts doc HOT 2
- CI 调用审核的文本接口提示无权限 HOT 1
- 使用 vite 打包时 出现警告 HOT 1
- getAuthorization方法callback返回ScopeLimit为true是分片上传频繁重新获取这个合理? HOT 1
- 使用 Nodejs 引入包后出现 ReferenceError: self is not defined HOT 2
- 如何读取私读权限的文件 HOT 2
- Windows Defender 再次报毒:Exploit:JS/Blacole.IE HOT 6
- 这行里有个打错的注释 HOT 1
- 1.4.15升级到1.4.17运行报错,降级到1.4.16后正常 HOT 1
- 使用import引入cos-js-sdk-v5提示can't not found name 'Buffer' HOT 2
- cos-js-sdk-v5.js:1834 Uncaught (in promise) EvalError: Refused to evaluate a string as JavaScript HOT 1
- 调用uploadFile,为什么返回了BucketAlreadyOwnedByYou: Your previous request to create the named bucket succeeded and you already own it HOT 5
- 此处是不是有问题,文档提示需要必填字段FIlePath(版本是2.13.5) HOT 1
- 关于前端上传callback HOT 6
- 导致F2 控制台卡死 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cos-js-sdk-v5.