多部分请求的响应解码没有发生

multipart request's response decode is not happening

在 dart 中,我在多部分请求中上传了 Map 中的命名图像列表。在得到响应时,JSON 出现异常异常。实际上响应分成两行并显示无法解码......

 [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: FormatException: Unterminated string (at character 1054)
E/flutter (24484): ...\/1**.***.*.***\/Q2\/console\/img\/show_image?dir=animak_image\/BK  <----


[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: FormatException: Unexpected character (at character 2)
E/flutter (24484): ----> 00004\/xHohpYaL9ZMKACJd.jpg&w=&h=100","medium":"http:\/\/1**.***.*.***\/Q2\..

在上面,......dir=animak_image/BK00004/xHohpYaL9ZMKACJd.jpg....这一行分成两行

是的,很简单....stream 是未来的价值 off-course。所以我确实等待而不是流......就像......

 await request.send().then((value) async {
      if (response.statusCode == 200) {
        fetchedResponse = response;
      }
    });