Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

Inserting images into SQL7 using VB6

I am trying to insert (and retrive) image into SQL Server 7.

I have found some examples of how to do this, however it seems I need aTypeLib that I cannot find....  typelib with the IStream and IPersistStream Interfaces
Any idea where I can dload this??

Or an alternate method for insertng my images with Sample code?

Thanks....
0
ExtremeFitness
Asked:
ExtremeFitness
  • 2
  • 2
1 Solution
 
vinnyd79Commented:
0
 
ExtremeFitnessAuthor Commented:
Perfect!!!!

Now do you know if there is a way I can insert the pic from the DB directly to an Imgbox or picbox etc???
0
 
vinnyd79Commented:
Yes. After opening the recordset set the PictureBox's Datasource and DataField:

Set Picture1.Datasource = rs
Picture1.DataField = "YourFieldName"
0
 
ExtremeFitnessAuthor Commented:
Thanks.....
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now