larksuite / larksuite/oapi-sdk-java
希望文件相关api支持流式传输
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 310
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Description
当前文件上传必须使用File, 这意味着上传的文件必须在本地.
文件的下载由RawResponse提供byte[] body的统一抽象, 具体两个HttpTransport的实现都是读取全部body.
这影响客户文件操作形式的多样性以及应用性能稳定性的额外设计成本. 就下载而言, 对于技术不敏感的开发可能会忽略这里的潜在OOM隐患.
希望飞书可以支持文件流式传输.
以一个常见用例举例, 客户文件通常在OSS上, 上传可直接复用文件以流式传输转写到飞书. 从飞书下载也可直接转写到OSS得到统一管理和存档, 获取OSS链接保存至业务数据中作为关联.
Contributor guide
No contributing guide indexed for this repository
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.
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.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100