Is it possible createRenditions to base64 without file?


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:

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

Like this but bigger

Is it possible?

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

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


@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.

1 Like

@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.