CodeIgniter:在数据库中存储图像? [英] CodeIgniter: Storing an image in the database?

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

问题描述

我想使用CodeIgniter PHP框架在我的mySQL数据库中存储图像。
如何写入和读取图像?

I would like to store images in my mySQL database using the CodeIgniter PHP framework. How do I write and read the image?

谢谢。

推荐答案

您必须使用CI的文件上传类上传文件,并使用模型将其保存到数据库,以下是相关资源:

You will have to use the file uploading class of CI to upload the files and use the models to save them to the database, here are related resources:

文件上传类

模型

File Uploading Class
Models

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

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