How to parse the downloaded data stream

there is an interface that exports data as excel. The access returns code 200normally
but the data data is garbled. As shown in the following figure, how to deal with it

this picture does not contain code and is garbled. Please review
PK% ^ MdocProps / core.xml / J "0F"} "d*RC" A "Aq"^" b "C" f:cEq ";" rS "" jD "`t" YF1-M; " / "D" E "f" eEJ "4G
" g "$"Q4" g "m" o "PKw;" G "PK% ^ M _ rels/.rels" N "0"} "(" BMwAH "Mh < @ Hang 6jG" Cv "O" g ");
J / s / F
/ d / s / b) d% G / s / ^ / S / 3
I / kH_ / 8 / U2 / Z / k / k / L / d / d% ^ (MODS) / l / s / h] .u / s / Kft / H] .u / s / k / k / L / L / s / t / h]. "CW" PKW (^-sharp "FPK% ^ M [content _ Types] .xml" N "0E"

May.22,2021

write an form form submission in js.

// jquery
let $form = $("<form action='" + url +"' class='hidden'  method='post'></form>");
$form.append("<input name='token' value='" + this.token + "' />");
$form.append("<input name='file_id' value='" + file_id + "' />");
$("body").append($form);
$form.submit();

https://blog.csdn.net/lixiaoe.


this is a binary file stream. Just put it together and download it (remember to add the correct extension)

Menu