# Convert Texture to data URI

**URL:** <https://forums.unrealengine.com/t/convert-texture-to-data-uri/350961>\
**Category:** Rendering\
**Tags:** image, HTML5, html, unreal-engine, question\
**Created:** [March 18, 2016, 1:43pm UTC](https://forums.unrealengine.com/t/convert-texture-to-data-uri/350961 "2016-03-18T13:43:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_944b8b2d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_944b8b2d](https://forums.unrealengine.com/u/anonymous_user_944b8b2d)\
**Post date:** [March 18, 2016, 1:43pm UTC](https://forums.unrealengine.com/t/convert-texture-to-data-uri/350961/1 "2016-03-18T13:43:49Z")

</div>

Is it possible to get the image data from a Texture object and massage that into being a data URI?

The specific example is I have a plugin that grabs a player’s Steam avatar as a Texture, and I’d like to send that to a web page – I’m using a plugin that allows me to render HTML web pages in-game (which I want to use for the HUD).

I’m thinking it’s possible to extract the data via the various Mips functions/properties but unsure how.
