Optimize inserting long BLOB values for MySQL

So how should it be done instead?