It is Render Target to Byte Array. There is also a function with which you can then save the array as an image, i.e. PNG, JPEG and BMP. I recommend PNG.
The other way around is image to texture (Texture2D object reference). I think you can then draw the texture back into the render target.