Skip to content

Picture and Avatar store on MySQL Database #15915

Closed Answered by rashmikanaveen
votrongbang asked this question in Q&A
Discussion options

You must be logged in to vote

Storing images and avatars directly in a MySQL database is possible, but it not recommended due to performance and scalability concerns. Instead, it's often better to store the images in a file storage system (like AWS S3, Google Cloud Storage,etc..) and store the file paths or URLs in the database.

However, if you still want to store images in MySQL, you can use the
BLOB (Binary Large Object) data type to store binary data.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by snipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants