Is it a good practice to save a base64 string on the Database?

血红的双手。 提交于 2019-12-05 01:42:35
MusicsCordova

To answer your question, I think it's not good practice.

It depends largely upon how you will use these images you will probably load. Then, remember (base64 encoding makes file sizes roughly 33% larger than their original binary representations). The best way would be writing the image and then saving its location in the database.

Check out this post as it maybe help.

i think using base64 encoding is very useful for saving URLs in the database. The big size for transmitted image is not good idea and not necessary.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!