VB.NET & MySQL Insert Blob data - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

VB.NET & MySQL Insert Blob data

rezbaitrezbait Posts: 2Member
Following coding will help you to insert picture from VB.NET to MySql BLOB field. Coding is very simple.

Imports System.IO 'Write this coding before Class declaretion.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click


Dim cmd As New Odbc.OdbcCommand
Dim SQL As String
Dim rawData() As Byte
Dim fs As FileStream
Dim sPath As String


[link=http://bd-programmers.blogspot.com/2011/11/vbnet-mysql-insert-picture-in-blob.html]Full Code[/link]
Sign In or Register to comment.