如何在pictureBox中显示图像 [英] how to display image in pictureBox

查看:117
本文介绍了如何在pictureBox中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vb,c#进行Windows应用程序.
我通过sql查询将图像作为图像类型插入数据库中.现在我要显示在图片框中..
这可能吗.
尝试发送编码或
给参考站点...

谢谢,
kalai ....

i am doing windows application by using vb,c#.
i inserted images as a image type in database through sql query. now i want to display in picturebox..
is this possible..
try to send coding or
give reference sites...

thanks,
kalai....

推荐答案

您将nchar或varchar数据类型用于数据库中的图像.
you use nchar or varchar datatype for image inside the database.


Google结果
I mage from a Database
You can also try
Google Results


不要在数据库中使用图像字段,这将占用数据库服务器很大的空间.改为将其更改为varchar并保存文件名.这样,您就可以从数据库中检索文件名,并将其用作图片框中的图像源.

如果这可以解决您的问题,请将其标记为答案

最好的问候,
爱德华
Do not use an image field to your database at will occupy big space from your DB server. Change it to varchar instead and save the file name. With that, you can just retrieve the filename from the database and use it as source of image in your picture box.

Mark this as answer if this fixed your problem

Best regards,
Eduard


这篇关于如何在pictureBox中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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