dart_frog icon indicating copy to clipboard operation
dart_frog copied to clipboard

docs: How can We upload image to server?

Open MrShailandra opened this issue 1 year ago • 1 comments

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.

MrShailandra avatar Jul 07 '23 05:07 MrShailandra

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);

bradintheusa avatar Jul 18 '23 14:07 bradintheusa

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.

tomarra avatar May 21 '24 15:05 tomarra