ankidroid / ankidroid/Anki-Android-Backend

Discuss extending `addMediaFile` to accept a file path

未关闭
#608 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Kotlin
星标
91
派生
54
平均合并
1 天 36 分钟
30 天内合并 PR
12

描述

The backend [`AddMediaFile`](https://github.com/ankitects/anki/blob/dac26ce67147b261d79a56092320cc2f5af0d990/proto/anki/media.proto#L15) only accepts a byte array, not a file reference

```proto
message AddMediaFileRequest {
string desired_name = 1;
bytes data = 2;
}
```

This increases memory pressure on AnkiDroid for large files, as it does not support streaming , leading to `OurOfMemoryError`.

We may wish to implement this upstream, or as an AnkiDroid-only extension to the backend

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。