title: read file to bytearray adobe extendscript
body: <p>Is there a way to read a file in adobe extendscript to bytearray? I will upload 
  the bytes to a rest server.</p>
  
  <p>Currently, i'm using below and it is giving me binary string.
  var s = file.read();</p>