Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

应用内部文件共享机制 #196

Open
waterbang opened this issue Jun 25, 2024 · 0 comments
Open

应用内部文件共享机制 #196

waterbang opened this issue Jun 25, 2024 · 0 comments

Comments

@waterbang
Copy link
Collaborator

关于图标持久化,通过实现一个明确的功能模块来解决:

createBlob(data:ByteArray,mime:String):String

返回是一个内部url:

file:///blob/$sha256

这是一种缓存共享机制,不同于 file:///sys/

这意味着各个模块之间的 blob 是共享的,那么就直接读取就行了,如果是js端也可以通过 fetch 请求来得到 blob 的实际内容。

由于是file协议,统一让file.sys 适配器进行管理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant