- Newest
- Most votes
- Most comments
Hello.
The maximum size of an item that can be stored in a table is 400KB.
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-use-s3-too.html
Amazon DynamoDB limits the size of each item that you store in a table to 400 KB (see Quotas in Amazon DynamoDB). If your application needs to store more data in an item than the DynamoDB size limit permits, you can try compressing one or more large attributes or breaking the item into multiple items (efficiently indexed by sort keys).
As stated in the following document, DynamoDB is not suitable for storing images, so it is better to store them in S3 or another storage medium.
https://aws.amazon.com/dynamodb/faqs/?nc1=h_ls#topic-1
While it's technically possible to store images in DynamoDB as binary data (base64-encoded), there are some limitations and drawbacks due to the 400KB item limit size. Instead of storing images directly in DynamoDB, a better practice is to store the images in Amazon S3 (Simple Storage Service) and then store the S3 object URL or key in DynamoDB.
Relevant content
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
