简体   繁体   中英

Dio response byte image not converting to Uint8List, Flutter Web

I am trying to solve this issue since so log and not getting any solution.

final _response = await _apiService.getCall(ApiConstants.url_user_qr + query);
  if (_response?.statusCode == 200) {
    var a = Utf8Decoder().convert(_response?.data.codeUnits);
  }

I tried all the possible solution which I get over internet. Help really appreciated.

After more research I found a solution

dio.get(path, queryParameters: queryParams, options: Options(responseType: ResponseType.bytes));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM