base64 编码值是否会超过 65,535 个字符 [英] Will base64 encoded value exceed 65,535 characters

查看:19
本文介绍了base64 编码值是否会超过 65,535 个字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算将pdf文件转换为base64编码并保存在数据库中.

I am planning to convert pdf files to base64 encoded and save them in the database.

我的 DB 列是 text 类型.

My DB column is text type.

如果pdf文件很大,base64编码值会超过65535个字符吗?

Will base64 encoded value exceed 65,535 characters if pdf file is big?

推荐答案

我最终没有将它存储在我的数据库中,而是将文件保存在服务器上并将文件名保存在数据库中.

I ended up not storing it in my database but instead save the file on the server and save the filename in the database.

这篇关于base64 编码值是否会超过 65,535 个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆