Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 732
  • Last Modified:

Convert a char array to BITMAP and display on application

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
cskiong
Asked:
cskiong
1 Solution
 
JohnGabyCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now