最近の検索


最近の検索はありません

Uploaded image is empty or corrupted



投稿日時:2022年5月09日

Hi Team,

I'm trying to upload a image (downloaded from google), through Spring boot code. The image seems uploaded but I cannot see the thumbnail, even when I download the image it always 1 KB, so empty or broken. 

Details : 

API - /api/v2/uploads?filename=<my file name>

header - headers.set("Content-Type", "application/binary");

Can someone please help on this ?

Thanks,

Dilan.

 


0

3

3件のコメント

Hi Dilan,

I think your problem might be to do with the MIME type you are setting, you’re setting it to application/binary but the file is an image.

Could you try changing it to image/jpeg and let me know if that works?

0


Hi, Thanks for quick response.

I changed the content type to "image/jpeg", but still the same result. I can only see the empty image.

Thanks.

0


image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi Dilan! Can you take a look at this article and see if it gets you moving in the right direction?

0


サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿