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

通过minio api 上传图片无法直接预览 #5

Open
xuzhl2017 opened this issue Mar 24, 2023 · 0 comments
Open

通过minio api 上传图片无法直接预览 #5

xuzhl2017 opened this issue Mar 24, 2023 · 0 comments

Comments

@xuzhl2017
Copy link

minio是通过docker部署,引用的api版本是8.5.2,直接在管理控制台上传的图片可预览,通过api上传的无法预览,下载有乱码,一定要通过api下载。
minioClient.putObject(PutObjectArgs.builder().bucket(properties.getBucketName()).object(objectName).stream(is, is.available(), -1).contentType(contentType).build());

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