且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有关登录管理员的基本问题

更新时间:2023-10-29 20:44:52

您可以将图像保存在数据库,单独的数据库或文件系统中。将它们放入数据库中的主要功能是,使您的应用程序易于移动(所有数据都在数据库中)并且易于保护(您的代码将图像拉出并可以选择不使用)。



You can save images in your database, in a separate database, or in the file system. The main thing that putting them in the DB helps with, is making your app easy to move ( all the data is in the DB ) and easy to secure (your code pulls the images out and can choose not to).

引用:

或保留一段时间或某段时间,以及然后当我保存时,它应该在服务器上传图像并将图像名称保存在数据库中...

or keep in some session or something for time period, and then when i save ,it should upload image on server and save image name in database ...





我不知道你的意思,但是听起来很蠢。永久存储图像,而不是暂时存储你的建议只会让事情变得更难。





I have no idea what you mean here, but it sounds dumb. Store images permanently, not temporarily. What you're suggesting only makes things harder.

引用:

因为,再次,编辑包,我应该得到该包中的图像列表

because , when again , edit package, i should get list of images in that package





这意味着,无论图像是什么,数据库需要了解它们(通过存储细节,无论实际图像是否在数据库中)



Which means that, where-ever the images are, the database needs to know about them ( by storing details, no matter if the actual image is in the DB or not )