ankidroid / ankidroid/Anki-Android-Backend

Discuss extending `addMediaFile` to accept a file path

Đang mở
#608 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Kotlin
Star
91
Fork
54
Merge trung bình
1 ngày 36 phút
Pull request đã merge (30 ngày)
12

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.