文档中给出的以下方法不能用。
await AVFile.GetFileWithObjectIdAsync("538ed669e4b0e335f6102809").ContinueWith(t =>
{
var file = t.Result;
file.DownloadAsync().ContinueWith(s =>
{
var dataByte = file.DataByte;//获取文件流的byte数组,之后可以做保存,发送等操作。
});
});
报以下错误信息:
Type LeanCloud.AVFile' does not contain a definition for
DownloadAsync' and no extension method DownloadAsync' of type
LeanCloud.AVFile' could be found. Are you missing an assembly reference?
-
创建时间
18年5月8日
-
最后回复
18年5月9日
-
11
回复
-
2.4K
浏览
-
2
用户