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.
What Is AI-Assisted Vulnerability Research? Chrome 158’s Claude-Found Bugs Explained
Rashan Dixon
November 26, 2026
8:02 AM
The Cheapest Ways to Run an AI Agent 24/7 in 2027 (Ranked)
John Rampton
November 25, 2026
1:52 PM
What Is Java4Shell? The Critical OpenJDK Base64 Vulnerability Explained
Deanna Ritchie
November 25, 2026
8:05 AM
What Is the Agent-Framework PyPI Attack? Microsoft’s Credential Stealer Explained
Steve Gickling
November 24, 2026
7:59 AM
One Design System for the Product and the Marketing Site, or Two?
Rashan Dixon
November 23, 2026
3:12 PM
What Is NGINX2Root? The Critical NGINX RCE Vulnerabilities Explained
Rashan Dixon
November 23, 2026
7:28 AM
How Fintech Is Transforming the Way Consumers Manage Monthly Bills
Steve Gickling
November 20, 2026
11:53 AM
What Is .NET 11? C# 15 Union Types and AI Tooling Explained
Deanna Ritchie
November 20, 2026
10:51 AM
How the Modern Online Video Editor Is Reshaping Business Productivity and Marketing
Rashan Dixon
November 19, 2026
2:46 PM
Just-in-Time Privileged Access Should Be Scoped to Tasks, Not People
kellybryson
November 19, 2026
2:19 PM
What Is Windows 11’s Coding Agent Telemetry? Privacy Risk Explained
Steve Gickling
November 19, 2026
7:41 AM
What Is the cPGuard Supply Chain Attack? OpsShield’s Backdoor Explained
Rashan Dixon
November 18, 2026
8:31 AM
What Is wfx-loot? The GitHub Actions Secret Stealer Attack Explained
Deanna Ritchie
November 17, 2026
8:38 AM
What Is Gemini 4 Hydrogen? Google’s Fast, Low-Cost Coding Model Explained
Steve Gickling
November 16, 2026
8:08 AM
What Is GPT-6 Cyber? OpenAI’s New Cybersecurity AI Model Explained
Rashan Dixon
November 13, 2026
8:08 AM
What Is Microsoft’s November 2026 Patch Tuesday? Outlook Zero-Day Explained
Deanna Ritchie
November 12, 2026
8:08 AM
What Is Claude Fable 5.2? Anthropic’s New Flagship Model Explained
Steve Gickling
November 11, 2026
8:12 AM
What Is DeepSeek Super-Agent? DeepSeek’s Open Source Coding Agent Explained
Rashan Dixon
November 10, 2026
7:52 AM
What Is the Meta Conductor Acquisition? AI Coding Agents Explained
Deanna Ritchie
November 9, 2026
8:07 AM
Exploring How Service Robots Navigate Everyday Unpredictability with LiDAR
Steve Gickling
November 6, 2026
2:33 PM
What Is the Cloudflare Deno Acquisition? Explained
Editorial-team
November 6, 2026
8:18 AM
What Is FlashProve? Anthropic’s New Way to Verify AI Model Identity
Rashan Dixon
November 5, 2026
10:08 AM
What Is Recursive Self-Improvement in AI? Anthropic’s Warning Explained
Deanna Ritchie
November 4, 2026
8:05 AM
Domestic Intelligence: What Lütke, Musk And Panin Know That You Don’t?
Steve Gickling
November 3, 2026
11:32 AM
Design Systems to AI Platforms: The Evolution of Developer Experience
Rashan Dixon
November 3, 2026
10:55 AM
























