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

上传阿里云图片受损 #17

Open
jijiaxin2024 opened this issue Aug 23, 2022 · 3 comments
Open

上传阿里云图片受损 #17

jijiaxin2024 opened this issue Aug 23, 2022 · 3 comments

Comments

@jijiaxin2024
Copy link

可以上传,但是上传到阿里云OSS的图片是灰化的
image

@jijiaxin2024
Copy link
Author

文件的输入流来源是URLConnection
URLConnection con = url.openConnection();
is = con.getInputStream()
ossTemplate.putObject(BUCKET_NAME, name, is);

@lltx
Copy link
Collaborator

lltx commented Aug 23, 2022

感觉是你的流没有入参齐全

@jijiaxin2024
Copy link
Author

你是指文件类型和大小吗?

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