473,320 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Need help retrieving image from database into MFC project

Hi all...
I have a table image in SQL server database having two columns ID and Image (Datatype image). I have saved an image in SQL server database. Now i want to retrieve it from database and display in mfc project.I am using ADO recordset with DSN less connection.
I have an idea that "you have to copy the jpeg as bytearray to a MemoryStream. From that stream yo shall be able to load the JPEG."

but how i can copy JPEG from database to memory strem in mfc.
Pls Help...Its urgent........
May 17 '10 #1
0 1117

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Arnold | last post by:
Hi, I'm using visual studio .NET 2003 enterprise and MySQL 5.0. I've created a database project in wich I like to create scripts for stored procedures and queries. I've created a connection...
1
by: tcg_gilbert | last post by:
I'm stuggling with where to build my databas projects using .NET 2005. I've got visual Studio 2005 installed and I'm trying to pull data from a Teradata database and I would like to have a place...
0
by: alex | last post by:
I have created a database project using Visual Studio 2005 and SQLExpress(local machine).I have referenced to a database in SQL express. In the Server Explorer,by right-click on database table...
4
by: ghowells | last post by:
I've been trying to create an image database using Access 2000 linked to all the images on our server, as per the instructions on the microsoft website. The code to link the photos is as follows:...
2
by: oren18 | last post by:
hello.does anybody know .. how to make an image database by using VB.NET 2005 and Microsoft Access i want to make an application ( VB.NET 2005 ) that prompt a user to put his picture into...
0
by: oren18 | last post by:
hello.does anybody know .. how to make an image database by using VB.NET 2005 and Microsoft Access i want to make an application ( VB.NET 2005 ) that prompt a user to put his picture into...
1
by: =?Utf-8?B?TGVvbiBNYXluZQ==?= | last post by:
In a database project in VS2005 (not a datadude project), I need to add about 3,000 stored procedure scripts to my 'Stored Procedures' folder. I've dropped the scripts into the folder in my...
1
by: Varangian | last post by:
Hi, I have a database project and along with its scripts and stored procedures I want to add them to the installer file (web installer project). However sadly the database project is not listed...
0
by: velmani | last post by:
hi , i have problem with Retrieving image from DB i have a table with image datatype i store a file by using code as follows -------------------------------------------------- string strType; ...
1
by: Aleksey Timonin | last post by:
Hi guys! I'll try to describe situation. 1. We have VS database project. 2. It contains table A. 3. In post-deployment script for the table A we have 'insert' statements adding records to it....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.