Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Convert a char array to BITMAP and display on application

Posted on 2009-05-16
1
Medium Priority
?
725 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 2000 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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…

715 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