你在哪里存储asp.net中的图像

编程入门 行业动态 更新时间:2024-10-21 23:20:42
本文介绍了你在哪里存储asp中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的项目是学校管理网络项目。在我的项目中,我必须存储图像。我应该将图像存储在数据库中还是其他。请告诉​​我如何操作并解释为什么这样做。大多数人都将图像存储在项目和服务器中。 那可以吗?为什么?请快速回答我。谢谢所有。

My project is school management web project.In my project, I have to store image.Where I should store image in database or other.Please give me away how to do it and explain me why do that. Most people are stored image in project and server. That is OK? Why?Please quickly answer me.Thanks to all.

推荐答案

在我看来,你应该存储在 FileSystem 中,因为当你需要存储时具有高分辨率的图像,然后您将存储在数据库中的字节数据将不必要地使其过载。 同时读取和写入数据库到数据库是时间消耗,这将使您的应用程序变慢。 如果您存储在 FileSystem 中,您将可以更好地控制它。如果需要,您可以使用压缩算法。但就您的学校管理系统而言,您可能不需要。 所以,去 FileSystem 。它会比数据库更好。 :) In my opinion, you should store in FileSystem because when you need to store images having high resolutions, then the byte data you will store in Database would unnecessarily make it overloaded. Also reading and writing images into Database is time consuming, which will make your application slow. If you store in FileSystem, you will have the better control over it. You can go for compression algorithms, if you require. But as far as your School Management System is concerned, you may not require that. So, go for FileSystem. It would be better than Database. :)

检查这些链接: www.aspforums/Threads/127524/Save-File-in-Folder-on-disk- vs-save-file-in-database-Advantages-and-Poorages / [ ^ ] www.extremeexperts/sql/faq/StoreImages.aspx [ ^ ] www.dofactory/topic/1379/best-practice- store-images-in-db-or-on-file-system.aspx [ ^ ] stackoverflow/questions/2517752/images-in-database-vs-file-system [ ^ ] Check these Links: www.aspforums/Threads/127524/Save-File-in-Folder-on-disk-vs-save-file-in-database-Advantages-and-Disadvantages/[^] www.extremeexperts/sql/faq/StoreImages.aspx[^] www.dofactory/topic/1379/best-practice-store-images-in-db-or-on-file-system.aspx[^] stackoverflow/questions/2517752/images-in-database-vs-file-system[^]

使用ASP.NET在数据库或文件系统中存储上载的文件 [ ^ ](这有比较文件系统与数据库 - 优点/缺点等,) Storing Uploaded Files in a Database or in the File System with ASP.NET[^](This has comparison File System vs Database - Advantages/Disadvantages, etc.,)

更多推荐

你在哪里存储asp.net中的图像

本文发布于:2023-11-14 10:06:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586924.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:你在哪里   图像   asp   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!