Manage generated base64 < size
Add log and debug