将图像数据存储在sql server 2005中的另一个表中 [英] store the image data in another table in sql server 2005

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

问题描述

我正在使用C#,asp.net 2.0,SQL Server 2005和Visual Studio 2005

任何人都可以帮助解决以下问题:

我已成功将图像文件上传到数据库(使用图像数据类型的数据库).


现在我的问题是:如何从表中检索该二进制数据(图像文件)并将其插入到另一个表中(再次将其存储为二进制数据).



请帮帮我.
在此先感谢.
问候,
Karan

I am using C#,asp.net 2.0,sql server 2005 and visual studio 2005

Can anybody help with the following problem:

i have successfully uploaded image file into the database(where i have used image datatype).


now my problem is: How to retrieve that binary data (image file) from the table and insert it in another table(again store it as binary data).



please help me.
Thanks in Advance.
Regards,
Karan

推荐答案

您需要做的只是一个适当的查询.

看看这篇检索图像并在UI中显示的文章: C#相册查看器 [ ^ ]

尝试!
All you need is a proper query to do the same.

Have a look at this article that retrives image and show in UI: C# Photo Album Viewer[^]

Try!


使用数组将二进制数据保存到变量中,然后将该数组变量数据发送到另一个表
using array hold the binary data into variables and then send that array variables data to another table


这篇关于将图像数据存储在sql server 2005中的另一个表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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