I am looking to upload a file and send it as type $byte to the endpoint using the POST method
My approach involves converting the file to base64, and then from there to byte. I couldn't find a direct way to convert it to byte, so my reasoning may be off here.
If you'd like to see the code in action, check out the StackBlitz link below: https://stackblitz.com/edit/angular-ivy-fya9mr?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts
Thank you!