MySQL-将图像上传到BLOB最大上传大小? [英] MySQL - Uploading Image To BLOB Max Upload Size?

查看:288
本文介绍了MySQL-将图像上传到BLOB最大上传大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用文件上传功能将图像上传到MySQL数据库的BLOB中,由于某些原因,当我上传一些图片时,发现它们没有完全渲染,然后尝试直接上传到PHPMyAdmin,然后显示(Max: 64KiB)幸运的是,我足够运行我自己的服务器,因此我想去检查php.ini文件的最大上传大小,该文件大小设置为250MB.所以我的问题是,

I'm using file uploading for images into a BLOB in a MySQL database, for some reason when I upload some pictures I noticed they weren't completely rendered, I then tried uploading directly into PHPMyAdmin when it then showed (Max: 64KiB) I luckily enough run my own server so I thought to go check my php.ini for max file upload size, it's set to 250MB. So my question is,

MySQL BLOB上载的最大文件大小在哪里?

推荐答案

这取决于您的列的类型.

It depends on the type of your column.

来自 MySQL文档:,第字符串的存储要求类型:

TINYBLOB

L + 1个字节,其中L< 2 8 (256字节)

TINYBLOB

L+1 bytes, where L < 28 (256 bytes)

L + 2个字节,其中L< 2 16 (65 KB)

L+2 bytes, where L < 216 (65 kilobytes)

L + 3个字节,其中L< 2 24 (16兆字节)

L+3 bytes, where L < 224 (16 megabytes)

L + 4个字节,其中L< 2 32 (4 GB)

L+4 bytes, where L < 232 (4 gigabytes)

这篇关于MySQL-将图像上传到BLOB最大上传大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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