Hi,
Thank you for your answer.
Unfortunately, it doesn't completly close my issue. Your samples work for files that are located on the computer and that we know of. I am only working with an array of bytes whether it is to upload or download.
So that means I don't have a path and the file is only known as a byte[].
Today I directly download the zipfile as base64 with a link "a" in javascript (called from a link in the grid) :
data = "data:application/zip;base64," + binary;
var a = window.document.createElement("a"); a.rel='nofollow' href = data; a.download = filename; document.body.appendChild(a); a.click(); document.body.removeChild(a); |
But I would like to unzip (with C# or Javascript) the file from my variable byte[] and return the result (still as a byte[]) to download the file inside with my javascript.
To be very brief :
The user click on the link -> app gets the file as an array of byte from oracle server -> unzip -> return the unzipped file inside as an array of byte -> JS download
Regards,
David.