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

兼容 Android 图片分享大小限制 #648

Closed

Conversation

naivetoby
Copy link
Contributor

根据微信 Android 分享官方文档

imageData 图片的二进制数据 内容大小不超过 1MB
imagePath 图片的本地路径 对应图片内容大小不超过 25MB

是否可以将二进制数据先缓存到本地路径,再通过 FileProvider 方式分享?

二、图片类型分享示例

WXImageObject (WXMediaMessage.IMediaObject 的派生类,用于描述一个图片对象)

根据微信官方文档
imageData 图片的二进制数据	内容大小不超过 1MB
imagePath 图片的本地路径 对应图片内容大小不超过 25MB
@JarvanMo
Copy link
Member

即将关闭此PR,因为这种方式不有可能导致文件格式保存的不对,如将gif保存成jpeg。

@JarvanMo JarvanMo closed this Oct 16, 2024
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

Successfully merging this pull request may close these issues.

2 participants