To Upload to View.
I would:
- I would write the uploaded byte into tempFilePath:
#creates a temporary file (with given extension) on host
tempFilePath = system.file.getTempFile(fileExt)
#write file byte to temporary file
system.file.writeFile(tempFilePath, fileByte)
- How do I extract the file bite into json and write to custom property?
To Download, I would:
- Convert to bytes and download:
system.perspective.download(filename, excelBytes)
- How do I convert jsonText to file?