Ok, i will reply to my own post .
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 ???
!!! NO β SURELY β NOT !!!
Why do the β UPLOAD-BUTTON <β not provide base64-Data before uploading the image file ? 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.