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

下载图片失败 #2865

Open
JamesLee66 opened this issue Sep 18, 2024 · 2 comments
Open

下载图片失败 #2865

JamesLee66 opened this issue Sep 18, 2024 · 2 comments

Comments

@JamesLee66
Copy link

问题描述

根据imageId构造Image对象,通过String imageUrl = Image.queryUrl(image);获取下载链接,下载链接打不开
image

复现

String imageId = "{57454715-A857-BAD2-D863-CA717CB64A5B}.jpg";
Image.Builder builder = Image.newBuilder(imageId);
builder.setType(ImageType.valueOf(imageMessage.getImageType()));
builder.setWidth(imageMessage.getWidth());
builder.setHeight(imageMessage.getHeight());
builder.setSize(imageMessage.getSize());
builder.setEmoji(imageMessage.getEmoji());
Image image = builder.build();
String imageUrl = Image.queryUrl(image);

mirai-core 版本

2.16.0

bot-protocol

ANDROID_PAD

其他组件版本

No response

系统日志

No response

网络日志

No response

补充信息

No response

@JamesLee66
Copy link
Author

使用ExternalResource.uploadAsImage上传的图片可以下载,在qq客户端发送的图片下载不了

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

2 participants