ankidroid / ankidroid/Anki-Android-Backend
Discuss extending `addMediaFile` to accept a file path
未关闭
- 主要语言
- 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 还没有评估数据。