在三层结构中如何插入和检索图像 [英] In three tier artitecture how to insert and retrieve image

查看:98
本文介绍了在三层结构中如何插入和检索图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!
我想知道在 sql 2008 中使用三层在数据库中存储图像的完整概念.我想知道如何在三层中将图像保存在数据库中或n层...存储图像的完整概念是什么,以及用于转换的方法是什么..以及为什么我们使用文件流和内存流,非常感谢,上帝保佑具有更多知识和熟练程度的您

我尝试过的事情:

我尝试通过使用byte []图像类型连接图像并将其直接引用到数据库,但出现错误,我不知道如何发送图像,请帮助

Hello everybody !!
I want to know full concept of storing images in database using three tier in sql 2008 .. I want to know how to save the images in database in three tier or n tier... what is the full concept of storing the images and what methods are used to convert.. also why we use file stream and memory stream thank a lot , may God bless you with more knowledge and proficiency

What I have tried:

I tried to connect the image by using byte[] image type and reference this direct to database but giving error I don''t know how to send the image please help

推荐答案

报价:

我强烈要求如何在数据库中保存图像.我只想在db中存储图像

请检查,如何使用C#和VB.Net将图像保存(插入)到ASP.Net数据库中 [ ^ ]

I have strongly asked for how to save images in database .. I only want to store images in db

check this, How to save ( insert ) Image in Database in ASP.Net using C# and VB.Net[^]


阅读有关以下内容的评论:db vs磁盘中的文件存储


read the above comments regarding, file storage in db vs disk


这只是另一种数据形式,仅此而已.框架设计的相同原理.您可以将其作为本地文件名&访问.小路;网址;字节数组;溪流;等等...并将其加载到UI级别的控件中.
It is just another form of data, nothing more. Same principles of your framework design. You can access it as a local filename & path; URL; byte array; stream; etc... and load it into the control at UI level.


这篇关于在三层结构中如何插入和检索图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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