Solved

Convert a char array to BITMAP and display on application

Posted on 2009-05-16
1
707 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
canBalance challenge 34 111
sumHeights2  challenge 7 139
Fibonacci challenge 11 141
Not needed 13 134
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…

734 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