Tag

LONGTEXT

1 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 16, 2019 · Databases

Storing and Retrieving Large Image Files in MySQL: Comparing LONGBLOB, LONGTEXT, and VARCHAR

This article demonstrates how to store 5 MB images in MySQL using LONGBLOB, LONGTEXT, and VARCHAR columns, compares their disk usage, shows insertion scripts, and provides retrieval methods including a stored procedure for binary export, concluding that storing file paths is more efficient.

Database PerformanceLONGTEXTSQL Procedure
0 likes · 7 min read
Storing and Retrieving Large Image Files in MySQL: Comparing LONGBLOB, LONGTEXT, and VARCHAR