native app takes photo, compresses it and converts to base64
If we wanted to send an octet-stream we'd need to buffer it in the edge function, then convert to base64 anyway, same case for form-data - smaller upload size though.
expo-camera can encode and compress the image on it's own
native app calls an edge function, attaching the encoded image
edge function authenticates with image parser provider (azure?)
edge function sends the image (no fs access there, has to be stored in-memory - 150MB limit, what if we go over? test)
we get a response in 2-4 seconds (more? less?), grab what's needed
return to client? insert into db, and return only unfit data to client?
Flow:
octet-stream
we'd need to buffer it in the edge function, then convert to base64 anyway, same case forform-data
- smaller upload size though.expo-camera
can encode and compress the image on it's own