Skip to content
Snippets Groups Projects
user avatar
ericLemanissier authored
When saving an attached file in the database, Passing the whole content of the file to bin2hex leads to allocating the memory for the whole hex encoded file while the binary content of the file is still in memory. This leads easily to Out of memory error on limited resources servers. Calling bin2hex on each chunk of the file greatly limits the memory usage.
9789b4ec
Name Last commit Last update