Michal Jurník
Michal Jurník

Reputation: 830

Amazon S3 - is it possible to display images?

My mobile app uploads images into Amazon S3 bucket. Now I need to get URL where image is displayed, not downloaded. Is it possible to do that? Thank you for idea.

Upvotes: 0

Views: 166

Answers (1)

Naveen Vijay
Naveen Vijay

Reputation: 16532

Sure it can be done by setting meta-data in the S3 AWS Management Console - [ Content-Type : image/png or Content-Type : image/jpg ] depending on the image format.

Once you have done this, the browser will render the image instead of downloading that.

Check out Object Key and Metadata for more info.

Upvotes: 1

Related Questions