如何通过VB.net将数据库SQL Server中的图像加载到PictureBox中

问题描述:

亲爱的:代码项目

现在,我将数据库Sql Server中的图像加载到Picture Box中遇到问题
当在DataGridView上单击行时

示例:DataGridView(DGview)

使用DGview
txtid.text = .cells(0).value
txtname.text = .cells(1).value
PictureBox.image =?(想知道此代码)
结尾为

请!帮帮我
谢谢!

Dear : The code Project

Now,I''m have a problem with loading image from Database Sql server into Picture Box
when Click row at DataGridView

Example: DataGridView(DGview)

With DGview
txtid.text = .cells(0).value
txtname.text = .cells(1).value
PictureBox.image = ? (want to know This code)
End with

Please! help me
Thanks you!

您好,

我想这就是您要寻找的东西:
使用Microsoft .NET从SQL Server存储和检索图像 [ ^ ]

请参阅标题为检索图像"的部分.

希望这会有所帮助,
Ed
Hi there,

I think this is what you''re looking for:
Storing and Retrieving Images from SQL Server using Microsoft .NET[^]

See the section titled "Retrieving Image".

Hope this helps,
Ed