how could i send a picture in similar fashion from a react native app?
with form-field? or is is doable in json? in postman it works with json, but i cannot send the picture there
Can’t answer specifically for reactive native, but from an Angular app I’ve had good success using FormData. For example, here’s my code for uploading a snapshot from a webcam:
public uploadSnapshot(snap: Blob) {
let data = new FormData();
data.append("data", snap, "snapshot");
data.append("timestamp", (new Date()).toISOString());
data.append("type", "image");
this.httpClient.post("/api/camera", data)
.subscribe(result => { }, errorResult => {
console.error("(CameraService) Error saving snapshot: ", errorResult);
});
}