如何在数据库中存储图像 [英] How Do I Store Image In Database

查看:78
本文介绍了如何在数据库中存储图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生/女士



我只想存储具有特定尺寸(600 * 600)的图像,如果图像不在给定的尺寸中,则会显示错误消息。

Dear sir / madam

I just want to store image with specific dimension (600*600) and give an error message if image is not in a given diemension.

推荐答案

使用php的getimagesize函数:

1. 在PHP中获取图像的宽度和高度 [ ^ ]

2. getimagesize [ ^ ]

3 。 php_file_upload [ ^ ]

4. 如何上传图片i使用PHP代码的MySQL数据库 [ ^ ]
use getimagesize function of php:
1. Get the width and height of an image in PHP[^]
2. getimagesize[^]
3. php_file_upload[^]
4. How to upload images into MySQL database using PHP code[^]


这篇关于如何在数据库中存储图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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