# Is it possible createRenditions to base64 without file?

**URL:** <https://forums.creativeclouddeveloper.com/t/is-it-possible-createrenditions-to-base64-without-file/1148>\
**Category:** UXP Plugin API\
**Tags:** dialog, ui, feature-request, api-feedback\
**Created:** [August 8, 2019, 9:56pm UTC](https://forums.creativeclouddeveloper.com/t/is-it-possible-createrenditions-to-base64-without-file/1148 "2019-08-08T21:56:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeXX](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@LeXX](https://forums.creativeclouddeveloper.com/u/LeXX)\
**Post date:** [August 8, 2019, 9:56pm UTC](https://forums.creativeclouddeveloper.com/t/is-it-possible-createrenditions-to-base64-without-file/1148/1 "2019-08-08T21:56:54Z")

</div>

### Question

I have for choose any component in project. After user select component from dropdown ui should render little preview of SymbolInstance.  
I meen tag img like this:

```auto
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=" />

```

Like this [https://s.mail.ru/52Sd/89LaLhmn8](https://s.mail.ru/52Sd/89LaLhmn8) but bigger

Is it possible?

---

<div class="post-metadata">

**Author:** ![robintindale](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/robintindale/32/415_2.png) [@robintindale](https://forums.creativeclouddeveloper.com/u/robintindale)\
**Post date:** [August 8, 2019, 10:05pm UTC](https://forums.creativeclouddeveloper.com/t/is-it-possible-createrenditions-to-base64-without-file/1148/2 "2019-08-08T22:05:25Z")

</div>

One of the sample plugins has similar functionality - when you click on a layer, it shows a rendition for that layer

> **[plugin-samples/ui-panel-show-renditions at master · AdobeXD/plugin-samples](https://github.com/AdobeXD/plugin-samples/tree/master/ui-panel-show-renditions)**
>
> Adobe XD Plugin API samples. Contribute to AdobeXD/plugin-samples development by creating an account on GitHub.

but it seems like they use `application.createRenditions` which does write to an intermediary file

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [August 8, 2019, 10:08pm UTC](https://forums.creativeclouddeveloper.com/t/is-it-possible-createrenditions-to-base64-without-file/1148/3 "2019-08-08T22:08:36Z")

</div>

@robintindale is right. That’s a good example for you to use, and, currently, you will have to create the renditions and saved them in the disk like the temp folder, for example.

---

<div class="post-metadata">

**Author:** ![LeXX](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@LeXX](https://forums.creativeclouddeveloper.com/u/LeXX)\
**Post date:** [August 9, 2019, 4:09pm UTC](https://forums.creativeclouddeveloper.com/t/is-it-possible-createrenditions-to-base64-without-file/1148/4 "2019-08-09T16:09:10Z")

</div>

@robintindale I thought of this option as the only possible one. Thanks for the example, it will save me a lot of time when converting a file to base64.
