How to will "string" type convert "IStream" type in MFC frammework

heyangben 81 Reputation points
2022-07-06T09:21:41.513+00:00

In MFC framework
I want to Load JPG images into “picture Control“ Control by calling "CImage. Load (IStream*)", but I don't know how to convert string to IStream, does anyone know how to solve this problem? I don't want to save it locally and then Load it by calling "CImage. Load (LPCTSTR)". I just want to load picture in memory
Or there are other ways to implement this requirement?
I just don't want to save it locally
I want to load it directly into "Picture Control" Control
218112-one.png

218067-image.png

217979-image.png

Developer technologies Visual Studio Testing
Developer technologies C++
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.