How to get file buffer from file

By the way, here a working example… (not perfect yet, but works already…):grin:
The only problem → you get catched in a LOOP. And i did not found out how to stop the loop.

https://russian-dima.wixsite.com/login-system/vnbadgemgm

You will have to open the Badge-Upload-Menu…

Do an UPLOAD…(of a pic)…


Take a look onto given RESULTS…

Adding the following line…

var fileSRC =  input.files[0].stream;         	console.log("File-SRC: ", fileSRC);

Should give back the BUFFER-Array, as i can remember.