How would I export the faces of a Cube Render Target as a JPEG?

I want to export the individual faces of a Cube Render Target as JPEGs during runtime of my game so that I can reconstruct the cube map outside of the game for in-browser viewing.

It seems that the editor has the ability to access individual faces of the Cube Render Target, but I haven’t been able to figure out how to do it programmatically in C++ during runtime.

Could someone help me with a code snippet?

The best resource I found on this was from this thread a while back, but it’s not a complete solution and may be a bit outdated:

I found that most of the operations can be performed on Cube Render Target are only exist in the editor, and the corresponding api cannot be found in C++. My understanding is that all operations in the editor and blueprint are actually calls to C++ code, but I cannot find the corresponding C++ code.