Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using sql 2000 image in vb6

Status
Not open for further replies.

baran121

Programmer
Sep 8, 2005
337
TR
hi
i want to
Store and retrieve images in SQL Server 2000 using VB6.0
how can i do that?
please help me.
 
I'd store the images elsewhere than SQLServer and store a path to the image in your DB.

The pseudocode would look like this:
Code:
'Retrieve Image
Open DB Connection
Select Image Path from DB
Close Connection
Use returned path to retrieve Image from location
Display image


'Store Image
Open DB Connection
Insert/Update image path into/in DB
Close Connection
Hope this helps



HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
thank you
now it works like you said.
but i want to get image data from sql server.
and put image data to sql server
 
To get you started, something like this?

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top