binary data in database, blob vs compressed base64

早过忘川 提交于 2019-11-30 11:35:17

It seems that I have to answer my own question. Most of the time, storing compressed base64 into database is not a good idea. It is complex than storing blob. And most of the time, binary is smaller than base64 string.

I only find one case that compressed base64 is useful: you can't alter the table schema, and there is only text columns, you have to store binary data into that table. The only possible way is to convert binary to base64 string.

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