在sql server中上传图片

编程入门 行业动态 更新时间:2024-10-23 07:28:18
本文介绍了在sql server中上传图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我使用此命令时,它会保存< binary>在野外但不将图片展示出来 com = New SqlCommand(插入table1(image)values(" ImagePictureBox.Image)",Me.con) adp.SelectCommand = com table =新数据表 adp.Fill(table) 当我使用使向导连接成为数据源时,然后将其拖放到窗体上,以便它保存并显示第一张图片而不是第二张,这是当我保存第二张图片时出现的错误 当传递带有修改后的行的数据行集合时,更新需要有效的更新命令.

When I use this command so it save <binary> in the field but not show picture in out put com = New SqlCommand("insert into table1(image)values(''ImagePictureBox.Image'')", Me.con) adp.SelectCommand = com table = New Data Table adp.Fill(table) and when i use making wizard connection mean data source and then i drag and drop on the form so it save and show first picture not second this is bellow error when i save second picture Update requires a valid Update Command when passed Data Row collection with modified rows.

推荐答案

您是否已搜索过很多文章,涵盖了此内容 www.codeproject/KB/database/albumviewer.aspx [ ^ ] Have you searched, there are many articles that cover this www.codeproject/KB/database/albumviewer.aspx[^]

更多推荐

在sql server中上传图片

本文发布于:2023-11-26 17:01:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634453.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上传图片   sql   server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!