real time image transmit to unreal engine scene

Hi everyone,
Due to the need of the project, I have to develop in unreal engine for the goal: we have a external camera(I mean real camera) and it will transmit the real-time image to unreal engine. My primary idea to accomplish it is to create a new class in C++ of unreal project and call the API to return the real time image by camera, then save the picture as a texture variable, then use the blueprint function to call it and finally draw it to scene. Do u think it’s accessible? Or do you have better idea? Or u know somebody has done similar thing?
Thanks much for your reply~~~