ankidroid / ankidroid/Anki-Android-Backend
Discuss extending `addMediaFile` to accept a file path
Aperta
- Lingua principale
- Kotlin
- Stelle
- 91
- Fork
- 54
- Merge medio
- 1g 36m
- PR unite (30g)
- 12
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.