(Uploader) Upload images as binary

Good day,

Is there anyway in Webix to upload images with uploader as binary and save them in dataset or in indexdb and then load them into datatabel ?

Maybe there are some documentation about this.

You can use the onBeforeFileAdd event and get the file object as item.file.

After that, FileReader API ( HTML5 API, not related to Webix ) can be used to read data from any data blob, including the one in the file object.

Thank you ,

I have another small question.
Lets say i have now converted my image with FileReader as Text or ArrayBuffer and saved it into dataset. Is there a way to load and show that image in to a datatable ?
I know that when i use FileReader and get an URL ( .readAsDataURL() ) i can just save that URL with < img > tags and then load it

Like that :

var persinfo_dataset = [

{ id: 1, name: “Sven Petersen”, alter: “18”, image: "< img src=’’ >},

{ id: 2, name: “Martn Bein”, alter: “22”, image: “< img src=’’ >” },

];

This is the correct approach.

But would be better to define the <img> tag inside the column template:

http://webix.com/snippet/03b67ff8