I’ll try to read the response in javascript with bolob() but it’s readble only like json(). In body I can read the pdf file but if I save it like string in a file it isn’t readble? Is it converted in base64? Can provide to me an example about to view the pdf file? Thank’s
아래에 의견을 추가하고 토론에 참여하세요.
It’s works!
Thank you very much.
Hi,
the following should work (it did for me with Firefox and Edge/Chromium):
<script src=“https://code.jquery.com/jquery-3.6.0.min.js” integrity=“sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=” crossorigin=“anonymous”></script>
<form id=“data”>
<input type=“file” name=“XML”></input>
<input type=“submit” value=“Submit”></input>
</form>
<script>
$(“form#data”).submit(function(e) {
e.preventDefault();
var data = new FormData(this);
});
</script>