Will base64 encoded value exceed 65,535 characters
问题 I am planning to convert pdf files to base64 encoded and save them in the database. My DB column is text type. Will base64 encoded value exceed 65,535 characters if pdf file is big? 回答1: Base64 encoding maps the input bytes (8 Bit) to a 6 bit representation. That means, with a 4 character string in base64 encoding, you can encode 4 * 6 = 24 bits, which equals 3 byte of the unencoded original input. Therefore the result of the encoding will be 33% bigger than the input. And base64 encoding has