Previewing UPLOAD-IMAGE

Ok, i will reply to my own post :wink:.

Ok, Velo-Ninja has found his solution.
At least i was not able to work without using (either a custom-element or an html-component) .

But at the end i don’t have first to upload the image with the upload-button to my Wix-File-Manager, just to have the possibility to preview the picture β€”> sorry when i tell this, but β†’ what a bullshit? <β€” .

Imagine that i have a app which handles with 1000 of pictures which has a preview for the pics i am getting from my loacal PC β†’ do i have to upload all that pics β†’ just to be able to preview them ???

:stuck_out_tongue_winking_eye:!!! NO β†’ SURELY β†’ NOT !!!:stuck_out_tongue_winking_eye:

Why do the β†’ UPLOAD-BUTTON <β€” not provide base64-Data before uploading the image file ? :eyes: to be able to generate a image-preview ?

However, this issue was again resolved by using an HTM-Component.
Working stable & fast.

But still my question: β†’ Is it possible to use β†’ fs.readFileSync(PATH), or fsExtra.readFileSync(PATH); ← in my case to be able to generate the same PREVIEW-FUNCTIONALITY but avoiding the usage of an HTML-Component or Custom-Element?

Or do i have a leck of knowledge in this case?

Getting some ideas appreciated though.