How can I copy an unreal rendertarget to an openGL texture?

I want to copy my game’s viewport rendertarget to an openGl texture.
I need it to be done on the gpu, without ever reading the texture data back to the cpu.

Is this possible atall?

The reason I need this, is because I need to send my unreal viewport to an external java application. it so happens java supports OpenGL, so I was thinking I could create an OpenGl context in java and copy unreal’s viewport pixels to that.

I would like to try using glCopyImageSubData, however I cannot seem to access it in unreal.