如何通过c#将图像导入sql sserver 2008? [英] how to import image into sql sserver 2008 by c# ?

查看:87
本文介绍了如何通过c#将图像导入sql sserver 2008?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过c#将图像导入sql sserver 2008中?

how to import image into sql sserver 2008 by c# ?

推荐答案

首先,我建议您将图像存储在数据库,而是存储图像文件的位置.因为
0)大大减少了数据库的大小
1)更新/替换图像非常容易,因为它只是文件操作
2)将图片作为文件使用很容易
3)没有大量的插入/更新/删除操作

如果您仍想将图像存储在数据库中,请参阅本文
将图像保存到SQL Server [
First of I suggest that you do not store images in a database, and instead store the location of the image file. Becuase
0) It reduzes the size of the database greatly
1) Updating/replacing the image is alot easier as it''s just a file operation
2) It''s alot easier to work with the image as a file
3) No massive insert/update/delete operations

If you still want to store your images in your database have a look at this article
Save an Image to SQL Server[^]


我假设您想在sql中插入图像使用C#的Server2008.

请参阅以下内容:

将图像保存到SQL Server 2000数据库 [ http://www.redmondpie.com/inserting -in-and-retrieving-image-from-sql-server-database-using-c/ [
I assume you want to insert images in sql server 2008 using c#.

refer these:

Save An Image Into SQL Server 2000 Database[^]

http://www.redmondpie.com/inserting-in-and-retrieving-image-from-sql-server-database-using-c/[^]

hope it helps :)


这篇关于如何通过c#将图像导入sql sserver 2008?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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