Here is the code as shown:
function WrkerImgeUpload() {
const [fileHandle] = await window.showOpenFilePicker();
const file = await fileHandle.getFile();
const content = await file.text(); // Read content as text
document.getElementById("WorkerImage").value = content;
return false;
}