在sqlserver表中存储图像的地址 [英] Storing address of an image in sqlserver table

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

问题描述

您好,我正在使用sqlserver2008.我想在GridView列中显示图像.为此,我将图像存储在我的应用程序解决方案资源管理器的Images文件夹中.我不知道如何在db表中给出该图像的地址,也不知道如何将该图像映射到gridview列中存在的控件.谁能在sqlserver2008中提出如何使用图像的想法.

Hi,i am working with sqlserver2008. I want to display an image in the GridView column. For this i stored the image in Images folder of my app solution explorer. I dont know how to give the address of this image in the db table and also how to map this image to a control which is present in column of a gridview. Can anyone give an idea how to work with image in sqlserver2008.

推荐答案

通常,图像地址"是指图像实例的地址(例如位图) ) 在记忆中.该地址不是持久性实体,因此将其存储在数据库中将毫无用处.通常,您需要使用图像类型存储图像数据本身.

如果您指的是完全不同的东西,例如图像URL或类似的东西,请使用上方的改善问题",然后…请注意您的语言.

—SA
Usually "address of the image" means the address of the instance of the image (such as bitmap) in memory. This address is not a persistent entity, so storing it in a database would be quite useless. Normally you need to store image data itself using image type.

If you mean something completely different, such as image URL or something like that, use "Improve question" above and… watch you language.

—SA


嘿!对此使用C#在SQL Server数据库中存储或保存图像[ ^ ]文章,其中提供了使用图像路径"从数据库获取和设置图像的信息.可能会对您有所帮助.
hey! Raj this Store or save images in SQL Server database using C#[^] article using Image path to get and set Image from Database. it might help you.


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

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