My problem is I am trying to construct a javascript object of mapped fields. In that object I need to submit an img as a byte array. Those are the specific instructions I received from the third party company. I am assuming that I need to take an image file and convert it into a byte array. People have told me to use base64, that the image already comes in base64, to use a buffer Array, and google is not very specific on how to return a string array for the values. I need to convert an AWS image url into a byte array. The code I have been using to fetch the image based upon the url gives me a error message stating "has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource"