Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to create hexadecimal encoded files in javascript

var bytes = Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
var ia = new Uint8Array(bytes);
var file = new File([ia], "hexfile.bin", {type: "application/octet-stream"});
document.location = URL.createObjectURL(file);
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #hexadecimal #encoded #files #javascript
ADD COMMENT
Topic
Name
1+1 =