Convert string to byte array in angular 6. toString() iterate for each item and append it to form.