希望文件相关api支持流式传输
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by locating the file upload API, RawResponse's byte[] body abstraction, and both HttpTransport implementations mentioned in the issue. Define the streaming upload and download interfaces, then verify that large files can pass through without requiring the complete body or a local File.
Written by the indexing model from the issue text.
Description
当前文件上传必须使用File, 这意味着上传的文件必须在本地.
文件的下载由RawResponse提供byte[] body的统一抽象, 具体两个HttpTransport的实现都是读取全部body.
这影响客户文件操作形式的多样性以及应用性能稳定性的额外设计成本. 就下载而言, 对于技术不敏感的开发可能会忽略这里的潜在OOM隐患.
希望飞书可以支持文件流式传输.
以一个常见用例举例, 客户文件通常在OSS上, 上传可直接复用文件以流式传输转写到飞书. 从飞书下载也可直接转写到OSS得到统一管理和存档, 获取OSS链接保存至业务数据中作为关联.
- Dominant language
- Java
- Stars
- 311
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from larksuite/oapi-sdk-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
larksuite/oapi-sdk-java#197 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
larksuite/oapi-sdk-java#196 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
larksuite/oapi-sdk-java#191 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
larksuite/oapi-sdk-java#149 ·
-
接口响应类型错误Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
larksuite/oapi-sdk-java#79 ·
All issues in larksuite/oapi-sdk-java
Similar issues
-
Update license yearOpen0 - Backlog 1 - Ready documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
cbor
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
FasterXML/jackson-dataformats-binary#844 ·
Maintainers usually reply within 1 day
-
improvement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/iceberg#18351 · 1 comment ·
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
repowise-dev/repowise#2945 · 1 comment ·
Maintainers usually reply within 1 day
-
Interpolating settings.xml can lead to malformed XML when variable value contains double-hyphenOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apache/maven#13321 · 1 comment ·
Maintainers usually reply within 1 day