Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21311

not upload picture in database

$
0
0
i try unload picture in database but i failed how upload image save in database i see picture in picture box
i used adodbc conn used
i used this code

Dim sFileName1
Set rs = con.Execute("SELECT * FROM imagepic")

sFileName1 = Text1.text
Image1.Picture = LoadPicture(sFileName1)
Set strStream = New ADODB.Stream
strStream.Type = adTypeBinary
strStream.Open
strStream.LoadFromFile sFileName1
imagetgy = strStream.Read

con.Execute ("INSERT INTO imagepic VALUES('1', '" & imagetgy & "')")


Name:  pic.JPG
Views: 62
Size:  32.2 KB

please how can this
Attached Images
 

Viewing all articles
Browse latest Browse all 21311

Trending Articles



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