Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Tips Database Forum Rss Feed

» Database Journal Home
» Database Articles
» Database Tutorials
MS Access
SQL Scripts & Samples
» Database Forum
» Slideshows
Free Newsletters:

News Via RSS Feed

Rss Feed

Database Journal |DBA Support |SQLCourse |SQLCourse2

Featured Database Articles

Database News

Posted Jan 31, 2005

Managed C++: Read Image Data Using the ADO.NET DataReader

By DatabaseJournal.com Staff

[From developer.com]

One of the first tasks I encountered when I started working with Managed C++ and ADO.NET was that of reading image data from a SQL Server database and then either saving or displaying the images. As an example, the standard SQL Server Northwind database has a table (Employees) that includes a Binary Large Object (BLOB) column that contains the image data for each employee. This article first lists the steps for reading this data using the .NET DataReader class. It then presents a generic function for reading an image from a SQL Server database and writing that data to a disk file.

If you wish to learn more about ADO.NET and the classes presented here, my book Extending MFC Applications with the .NET Framework has three chapters devoted to ADO.NET, including such advanced subjects as disconnected data, working with hierarchical data, and dealing with issues of concurrency.

The article continues at http://www.developer.com/db/article.php/3465981

Database News Archives

Latest Forum Threads
Database News Forum
Topic By Replies Updated
Efficient SQL Server Indexing by Design lcole 0 April 30th, 12:38 PM
Mine Oracle Database, SQL Server and Other Databases with Monarch Data Pump Pro V10.5 lcole 0 April 30th, 12:37 PM
Oracle Database and Oracle Fusion Middleware for Private Social Network Application lcole 0 April 30th, 12:31 PM
Oracle Database Maintains a Stronghold in the DBMS Market lcole 0 April 30th, 12:30 PM