Excellent Louis, Thanks for sharing this.
Yes I think that for this case (CKEditor Image), this is the best solution (because of the simplicity).
For other use cases, with a lot of file uploads by users, we definitely need to avoid the files handling by the database and send the files directly from the browser to the cloud storage...