gpt4 book ai didi

mysql - CodeIgniter:在数据库中存储图像?

转载 作者:行者123 更新时间:2023-12-01 00:15:55 25 4
gpt4 key购买 nike

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

谢谢。

最佳答案

你将不得不使用CI的文件上传类来上传文件并使用模型将它们保存到数据库中,这里是相关资源:

File Uploading Class
<强> Models

关于mysql - CodeIgniter:在数据库中存储图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2775284/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com