I’m trying to figure out how to let the user take a picture with a camera, and then take that captured picture and upload it to a service. The service requires a byte array, but for the life of me, I can’t figure out any code to get from an imageAsset to a byte array. I’ve tried converting it to an image source, but still can’t find a path to a byte array. I’ve tried saving it locally, but that always fails silently. I m having the camera save it to the camera roll, and I see that it is being created successfully.
Any ideas to go from imageasset to byte array?