Solved

Convert a char array to BITMAP and display on application

Posted on 2009-05-16
1
693 Views
Last Modified: 2013-12-03
Hi Experts,

I have a char array containing image data downloaded from a web server via HTTP using WININET.  The HTTP response shows the content type is image/jpeg.

I'm not sure it is in RGB or BGR or some other type of data format, basically it is a JPEG image.
I would like to know how could I convert this char array to BITMAP/HBITMAP or anything else where I can display it as an image on my MFC application?

Thank you!
0
Comment
Question by:cskiong
1 Comment
 
LVL 9

Accepted Solution

by:
JohnGaby earned 500 total points
ID: 24403561
I posted a response to your other post showing how you can use GDI+ to load an display a jpeg image which is stred in a memory block.

http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_24405560.html?cid=1066#a24403118
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now