将图片添加到员工档案 [英] Adding Picture to Employee Profile

查看:68
本文介绍了将图片添加到员工档案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个员工档案表。

我想将员工图片添加为varbinary(最大)。

我正在使用C#与Ms Sql Server 2008.

如何使用Winform加载/保存图像。

I have an Employee Profile Table.
I want to add Employee Picture as varbinary(max).
I am using C# with Ms Sql Server 2008.
How can i Load/Save Image using Winform.

推荐答案

看看这篇优秀的文章:

< a href =http://www.codeproject.com/Articles/15460/C-Image-to-Byte-Array-and-Byte-Array-to-Image-Conv> C#Image to Byte Array和Byte Array to图像转换器类 [ ^ ]



使用C#(winforms)将图像上传(保存)到SqlServer2008数据库[ ^ ]

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



第一个链接几乎可以到达那里;)



-KR
Have a look at this excellent article:
C# Image to Byte Array and Byte Array to Image Converter Class[^]

uploading(saving) image to SqlServer2008 DB using C#(winforms)[^]
http://www.redmondpie.com/inserting-in-and-retrieving-image-from-sql-server-database-using-c/[^]

First link will get you almost there ;)

-KR


请通过以下链接:



发送/接收C#中的PictureBox图像到/从Microsoft SQL SERVER [< a href =http://www.codeproject.com/Articles/25956/Sending-Receiving-PictureBox-Image-in-C-To-From-Mitarget =_ blanktitle =New Window> ^ ]



http://www.c-sharpcorner.com/ uploadfile / e628d9 / inserted-retrieve-images-from-sql-server-database-without-using-stored-procedures / [ ^ ]
Please go through below link:

Sending/Receiving PictureBox Image in C# To/From Microsoft SQL SERVER[^]

http://www.c-sharpcorner.com/uploadfile/e628d9/inserting-retrieving-images-from-sql-server-database-without-using-stored-procedures/[^]


这篇关于将图片添加到员工档案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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