使用c#在sql server中写一个图像 [英] write a image in sql server using c#

查看:71
本文介绍了使用c#在sql server中写一个图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨每一个

i我用asp.net和c#写一个网站来存储我的信息。在这个网站上,用户必须注册他们的信息,如姓名电子邮件密码和其他人和一个字段用户必须为他的个人资料图片上传图像的图像名称。我的问题是我在哪里可以保存我的数据库中的图像我可以使用哪种查询我必须使用哪种数据类型以及我可以用于写入的C#代码/ u>在DB中从读取

非常感谢

hi every one
i am writing a website with asp.net and c# with sql server for store my information.In this website users must register their information such as name email password and others and a field with name of image that user must upload a image for his profile picture.my problem is that where can i save image in my database what query can i use what datatype i must use and what C# code i can use for writing in DB and reading from it
thanks alot

推荐答案

从这里开始:

http://code.msdn.microsoft.com/Read-和写入SQL-9082c500 [ ^ ]

使用Microso从SQL Server存储和检索图像ft .NET [ ^ ]

http ://www.dotnettutorials.com/tutorials/database/save-retrieve-image-cs.aspx [ ^ ]
Start here:
http://code.msdn.microsoft.com/Read-and-Write-to-a-SQL-9082c500[^]
Storing and Retrieving Images from SQL Server using Microsoft .NET[^]
http://www.dotnettutorials.com/tutorials/database/save-retrieve-image-cs.aspx[^]


这篇关于使用c#在sql server中写一个图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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