# How to make FTextureRenderTargetResource-\>ReadPixels() work on server side?

**URL:** <https://forums.unrealengine.com/t/how-to-make-ftexturerendertargetresource-readpixels-work-on-server-side/414101>\
**Category:** Cinematics & Media\
**Tags:** linux-server, unreal-engine, question\
**Created:** [January 9, 2018, 12:50am UTC](https://forums.unrealengine.com/t/how-to-make-ftexturerendertargetresource-readpixels-work-on-server-side/414101 "2018-01-09T00:50:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e5f624c2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e5f624c2](https://forums.unrealengine.com/u/anonymous_user_e5f624c2)\
**Post date:** [January 9, 2018, 12:50am UTC](https://forums.unrealengine.com/t/how-to-make-ftexturerendertargetresource-readpixels-work-on-server-side/414101/1 "2018-01-09T00:50:28Z")

</div>

Hi

I have to create an Actor that saves images of the camera on the server side.

If I’m calling the [RenderTargetResource-\>ReadPixels()](https://github.com/unrealcv/unrealcv/blob/master/Source/UnrealCV/Private/GTCaptureComponent.cpp#L66) that is on the [SavePng()](https://github.com/unrealcv/unrealcv/blob/master/Source/UnrealCV/Private/GTCaptureComponent.cpp#L49) on Unreal Editor, it works perfectly. Pixels are read and images saved without any problem.

But if I run my game only on server mode `(UE4Editor path/to/MyGame.uproject -server)` then my game fails when calling [RenderTargetResource-\>ReadPixels()](https://github.com/unrealcv/unrealcv/blob/master/Source/UnrealCV/Private/GTCaptureComponent.cpp#L66).

I really need to read the pixels on the server side no matter if we have clients connected or not.

How can I do that? Is it possible?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e5f624c2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e5f624c2](https://forums.unrealengine.com/u/anonymous_user_e5f624c2)\
**Post date:** [April 11, 2018, 2:12pm UTC](https://forums.unrealengine.com/t/how-to-make-ftexturerendertargetresource-readpixels-work-on-server-side/414101/2 "2018-04-11T14:12:42Z")

</div>

Does anybody know if this is possible?
