下载图像vb.net数据库ms访问 [英] download image vb.net database ms access

查看:90
本文介绍了下载图像vb.net数据库ms访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以这种方式在ms Access数据库中上传图像



I upload image in ms Access database this way

Try
          If (con.State = ConnectionState.Closed) Then
              con.Open()
          End If
          Dim cmd As New OleDbCommand("insert into FileUpload(Sub_Cid,Subject,FileUpload)Values(" & CmboSubCategory.SelectedValue & ",@Subject,@image)", con)
          cmd.Parameters.AddWithValue("@Subject", Convert.ToString(TxtSubject.Text))
          cmd.Parameters.AddWithValue("@image", txtFileUploadPath.Text)
          cmd.ExecuteNonQuery()
          MessageBox.Show("file Upload")
          con.Close()
      Catch ex As Exception
          MessageBox.Show(ex.ToString())
      End Try





i以长二进制数据形式查看数据库和图像保存



如何获取数据库中的图像和选项下载



i see the database and image save in long binary data form

how to get the image in database and option download

推荐答案

参考:

保存和从数据库中检索图像 [ ^ ]



..和更多相似的主题此处 [ ^ ]
Refer:
Save and Retrieve Image From Database[^]

..and more similar threads here[^]


这篇关于下载图像vb.net数据库ms访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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