Linked Questions

1 vote
1 answer
1k views

How to make upload the image with dio in flutter? void _postHttp() async { try { Dio dio = Dio(); dio.options.contentType = Headers.formUrlEncodedContentType; FormData formData = new FormData....
Rogerio Sandro Junior's user avatar
287 votes
17 answers
537k views

I'm using Nihilogic's "Canvas2Image" JavaScript tool to convert canvas drawings to PNG images. What I need now is to turn those base64 strings that this tool generates, into actual PNG files on the ...
Andrei Oniga's user avatar
  • 8,629
120 votes
20 answers
311k views

I use a web service for image processing , it works well in Postman: Now I want to make http request in flutter with Dart: import 'package:http/http.dart' as http; static ocr(File image) ...
Mneckoee's user avatar
  • 3,134
22 votes
4 answers
76k views

I saw other questions, but thats not what i want, i dont want to upload an image to a server, i dont want to convert to base64... I only want to post a file in a form data or something else and get ...
Meta Code's user avatar
  • 607
8 votes
3 answers
9k views

I need to post a PDF file to a remote REST API, and I can't for the life of me figure it out. No matter what I do, the server responds that I have not yet associated an object with the file parameter. ...
lucperkins's user avatar
2 votes
3 answers
14k views

I am using the Flutter Plugin Image_picker to choose images so that I want to upload image after selected the image Future<File> _imageFile; void _onImageButtonPressed(ImageSource source) ...
user3903484's user avatar
2 votes
2 answers
4k views

I am trying to upload image using Flutter's http plugin. Following is my code Future<ImageUploadModel> postImage(File photoPath) async { ImageUploadModel imageUploadModel; var request ...
user avatar
0 votes
2 answers
6k views

I am new to Flutter development. My problem is that when I try to upload the image to the server I am getting following error: NoSuchMethodError: The getter 'body' was called on null. Receiver: ...
ayub baba's user avatar
  • 389
1 vote
1 answer
3k views

I am currently using Flutter and Dart to try to send an image to a web service, after which I wait for a JSON response. The below links show the Postman request that I am trying to mimic. An image of ...
OWM's user avatar
  • 33
2 votes
2 answers
3k views

I am trying to upload an image in flutter using Dio package but its failing. I need to send an image in formdata. API >> needs request body as imageUpload:image Code for image upload static Future ...
Sudhansu Joshi's user avatar
0 votes
1 answer
2k views

What should I specify the media type in the content type if the image can be jpeg or png ? var postUri = Uri.parse('$serverUrl/store/signup'); var request = http.MultipartRequest('POST', postUri) .....
Flutter Dev's user avatar
0 votes
1 answer
2k views

I need some suggestion on how to send a POST request using the http module in Flutter with some parameters. I need to set the username to a string(in the body of the request), and also need to set a ...
Eesa Munir's user avatar
1 vote
1 answer
2k views

I am a newbie in a flutter. Can someone show me how to upload an image to my MySQL? I can't find any solution in the past weeks. My Code: import 'dart:io'; import 'package:flutter/cupertino.dart'; ...
Mohd Asymawi's user avatar
0 votes
1 answer
2k views

I've been searching in vain for a simple way of uploading a JSON file to a specific URL but I haven't been able to find one, for Flutter. I have implemented the code to download a simple JSON file ...
JustLearningAgain's user avatar
1 vote
1 answer
758 views

I am facing 2 problems with the below code and I think both are related. createFunction is showing an error - "This function has a return type of 'FutureOr< bool >', but doesn't end with a ...
Ujjwal Raijada's user avatar

15 30 50 per page