I needed to retrieve image fields on SQL Server 7.0 with VB6, and I couldn’t find any article about it. So, I assume others have had the same problem. I’ve since found a method for doing it.
You must use Microsoft ADO 2.5 and set it into the following project reference:
dim rst as new adodb.recordsetdim adoConn as new adodb.Connection
You also have to open the connection with the database.
'Open recordset....rst.Open "Select * from
where ", adoConn, adOpenKeyset,adLockOptimistic'THIS FUNCTION SAVES AN IMAGE
INTO AN IMAGE DATATYPE FIELDPrivate Function SaveImage() Dim mStream As New ADODB.Stream With mStream .Type = adTypeBinary .Open .LoadFromFile "NAME>" rst("").
Value = .Read rst.Update End With Set mStream = NothingEnd Function'THIS FUNCTION LOAD IMAGE FROM
IMAGE DATATYPE FIELD AND SAVE IT INTO AFILE.....Private Function LoadImage() Dim mStream As New ADODB.Stream With mStream .Type = adTypeBinary .Open .Write rst("") .SaveToFile "NAME>", adSaveCreateOverWrite End With Set mStream = NothingEnd Function
Aside from this method, you can use a picture control to store an image,put a picture control into a form, and call it PictureTemp.
PictureTemp.DataField = "Immagine"
'Set DataField....Set PictureTemp.DataSource = rst
'Set DataSource
You can use the PictureTemp.Picture property to get your image.
Private Function LoadImage() Dim mStream As New ADODB.Stream With mStream .Type = adTypeBinary .Open PictureTemp.DataField = "Immagine"
'Set DataField.... Set PictureTemp.DataSource = rst
'Set DataSource Set MSFGRID.CellPicture = PictureTemp.Picture
'Show image into a cell ofMicrosoft FlexGrid End With Set mStream = NothingEndFunction
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.
Related Posts
About Our Editorial Process
At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.
See our full editorial policy.
New Analysis Points To Quantum ML Gains
Steve Gickling
July 28, 2026
9:46 AM
Astronomers Find Rocky World With Atmosphere
Sumit Kumar
July 28, 2026
9:44 AM
How to Build AI Agents in 2026: A Practical Roadmap for Teams
Rashan Dixon
July 28, 2026
8:00 AM
Fear Will Not Win the AI Race
Joe Rothwell
July 28, 2026
7:22 AM
State Leads Probe Into Police Shooting
Deanna Ritchie
July 27, 2026
2:49 PM
Canadian Wildfire Smoke Chokes US Skies
Sumit Kumar
July 27, 2026
2:27 PM
FLUX 3 Launches in Early Access
Rashan Dixon
July 27, 2026
1:05 PM
US and China Race for AI Intelligence
Steve Gickling
July 27, 2026
11:41 AM
Investor Sees European AI Winning Globally
Sumit Kumar
July 27, 2026
10:01 AM
What Tech Readers Sought On GeekWire
Rashan Dixon
July 27, 2026
9:42 AM
Content Seal Faces Pressure To Catch Up
Kirstie Sands
July 27, 2026
9:05 AM
US Scrutiny Intensifies On Chinese AI Firms
Rashan Dixon
July 24, 2026
4:21 PM
AI Fortunes Poised To Shape Politics
Deanna Ritchie
July 24, 2026
4:01 PM
Principle’s Founder on How Fortune 500s Should Stress-Test Strategy Before Committing Capital
Priya Nandakumar
July 24, 2026
3:28 PM
Hadrius Raises $27 Million For Compliance
Sumit Kumar
July 24, 2026
3:12 PM
Quantum Computer Mines Experimental Cryptocurrency Faster
Rashan Dixon
July 24, 2026
12:32 PM
Four-Day Preliminary Hearing Set In Los Angeles
Kirstie Sands
July 24, 2026
11:33 AM
Defense Upswing Fuels European Revenues
Steve Gickling
July 24, 2026
10:41 AM
Wilt Chamberlain Thrift Jacket Sells For $89,600
Steve Gickling
July 24, 2026
10:39 AM
China’s Moonshot AI Unveils Kimi K3
Sumit Kumar
July 24, 2026
9:05 AM
Short And Sturdy Foldables Deserve Your Attention
Joe Rothwell
July 24, 2026
8:38 AM
Geopolitics Tighten Squeeze on U.S. Homebuyers
Rashan Dixon
July 23, 2026
5:02 PM
OpenAI Taps Kalshi For Sports Forecasts
Steve Gickling
July 23, 2026
4:11 PM
Fan Celebrations Trigger Seismic Sensors In Mexico
Rashan Dixon
July 23, 2026
3:04 PM
Meta Expands Louisiana Data Center Footprint
Deanna Ritchie
July 23, 2026
2:15 PM






















