title: How to send video (Larg size) inside post request?
body: <p>In my case I want to send video to my host through post request.</p>
  
  <p>I finish of many steps:</p>
  
  <p>1- I can get a video file from the gallery with <code>File</code> Data Type. (Using image_picker).</p>
  
  <pre><code>videoSelectorGallery() async {
        VideoFile = await ImagePicker.pickVideo(
          source: ImageSource.gallery,
        );
  
        _videoPlayerController = VideoPlayerController.file(VideoFile)..initialize().then((_) {
          setState(() { });
        });
  
        print("You selected gallery video : " + VideoFile.path);
  
          .
          .
          .
  
      }
  </code></pre>
  
  <p>2- I change it to String64bytes.</p>
  
  <pre><code>
          .
          .
          .
  
        // Convert from file to String64byte
        videoBytes = await VideoFile.readAsBytesSync();
        base64Video = base64Encode(videoBytes);
        print(base64Video);
  
  
      }
  </code></pre>
  
  <p>3- I send String64bytes with post request.</p>
  
  <pre><code>        .
          .
          .
  var body = json.encode(
          {
            "shopName":...,
            "description":...,
            "typeID":...,
            "video": base64Video // &lt;---- String64bytes
          }
      );
          .
          .
          .
  
  </code></pre>
  
  <p><strong>The problem</strong> : When I send this request, it gets very long time to finish and the reason because the video has large size.</p>
  
  <p><strong>I think</strong> the best way to send faster is to compress the video but I don't know how and I search before about compressing videos useing flutter, I found some ways but still not work for me.</p>
  
  <p>Any one know beeter idea how to send faster or good way to compress ? </p>