dart_frog
dart_frog copied to clipboard
docs: How can We upload image to server?
Description
Hello,
I'm trying to upload an image on the server using form data in Postman. I'm getting Image at the server as a string in this format { name: 1521549531614.jpeg, contentType: image/jpeg }. I'm confused about how to handle this and save to server.
I'm about to try the same thing. I'm using this as an example.
https://github.com/AseemWangoo/flutter_programs/blob/master/experiment_with_dartfrog/server/routes/api/v1/rekognizeIfCelebrity/index.dart
final imageBytes = base64Decode(bytes);
final celebrities = await dataSource.recognizeIfCelebrity(imageBytes);
Closing out tickets that are old/stale and have no activity. If this question is still open please create a new issue that can be triaged.