如何使用vb.net by command将图像插入sql server [英] How to insert image into sql server using vb.net by command

查看:98
本文介绍了如何使用vb.net by command将图像插入sql server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用vb.net通过命令将图像插入sql server

How to insert image into sql server using vb.net by command

推荐答案

一次又一次地回答这个问题毫无意义,因为它被问了太多次。请看这里:

http: //www.codeproject.com/search.aspx?doctypeid=5&q=SQL+%28images+OR+image%29 [ ^ ]。



-SA
Answering this question again and again makes little sense, as it was asked too many times. Just see here:
http://www.codeproject.com/search.aspx?doctypeid=5&q=SQL+%28images+OR+image%29[^].

—SA


嗨亲爱的,



图像以字节存储在sql中/>


所以在sql server表中使用image的数据类型创建字段

并使用存储过程从sql命令的参数传递.net中的字节数组。
hi dear,

Image is stored in sql as bytes

so create field with using datatype of image in sql server table
and pass byte array from .net in parameter of sql command with using stored procedure.


试试这个

http://www.aspdotnet-suresh.com/2011/01/how-to-insert-images-into-database-and.html [ ^ ]



本教程在C#中,所以请使用http://converter.telerik.com/ [ ^ ]转换vb中的代码。



如果有任何问题让我知道
try this
http://www.aspdotnet-suresh.com/2011/01/how-to-insert-images-into-database-and.html[^]

this tutorial is in C# so use http://converter.telerik.com/[^] to convert code in vb.

if any problem let me know


这篇关于如何使用vb.net by command将图像插入sql server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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