Slate Image From Web

Is it possible to pull an image from the web and display it in an SImage?

You can create dynamic texture from array: How to load and display an image from binary array on console? - C++ - Unreal Engine Forums

And you can get data by http response: IHttpBase::GetContent | Unreal Engine Documentation

See Can i create a Texture from RGBA Data? - Rendering - Epic Developer Community Forums

The implementation in the NewsFeed module might be a good start.

The problem with CreateTexture2D is it requires a TArray < FColor > while the data you get from the web is a TArray < uint8 >

So if you can still use CreateTexture2D, how do you convert from TArray < uint8 > to TArray < FColor > ?

If you know what’s the type of binary file you get from web you can always use 3rd party lib (like libpng or libjpg, btw they both included in UE) to convert it to raw RGBA data.

Slate has built-in support for PNGs. Check out the NewsFeed implementation. It downloads PNGs from a web service and shows them in the Editor UI.

Just looked at NewsFeed. Indeed it’s the best example.

To be more specific, FNewsFeedCache::RawDataToBrush function is the most interesting.