如何从sql server检索图像到picturebox? [英] How to retrieve an image from sql server into picturebox?

查看:56
本文介绍了如何从sql server检索图像到picturebox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我得到错误参数无效..我有很多浪费时间。帮帮我 

  i get error parametr is not valid.. i have  a lot of wasted time. Help me 

推荐答案

我有一个
MSDN代码示例
(包括C#和VB.NET版本),显示如何从SQL Server插入和检索图像。

I have a MSDN code sample (C# and VB.NET versions included) that shows how to insert and retrieve images from and to SQL-Server.

代码布局

有一个脚本CreationScripts.sql(负责创建一个数据库和表来运行代码),其中需要更改以匹配您的SQL-Server实例名称或SQL-Server的快速版本将是。\.SQLEXPRESS。

There is a script CreationScripts.sql (responsible for creating a database and table to run code against) where the following needs to change to match your SQL-Server instance name or if express version of SQL-Server it would be .\SQLEXPRESS.


这篇关于如何从sql server检索图像到picturebox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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