Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Save and Retrieve images in Database

$
0
0
HEllo Guys, I need your help, i want to save picture in my database, then after i save picture in database, i want to show it in PICTURE toolbox in VB 6.0,

Guys is this correct how to save?
dim str as string
str = "INSERT INTO tblenroll values('" & Me.txtno.Text & "','" & txtlname.Text & "', '" & txtfname.Text & "','" & txtmi.Text & "', " & txtage.Text & ", '" & cmbgender.Text & "', '" & cmbcourse.Text & "', " & cmbyrlevel.Text & ", '" & cmbstatus.Text & "', '" & cmbreligion.Text & "', '" & cmbcitizenship.Text & "', '" & birthday.Value & "', '" & txtplace.Text & "', '" & Image1.Picture & "')"
acd.Execute str 


and I donot know how to query it, please help me guys, thanks in advance, i will appreciate it.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>