Solved

Convert a char array to BITMAP and display on application

Posted on 2009-05-16
1
717 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

632 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