You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to convert using universal IO package,Im getting Missing extension byte at 11.Please provide solution to convert uint8list byte to file or please provide solution to download file for flutter web using http client.
import 'package:universal_io/io.dart'; var req = await http.get(uri, headers: headers); var bytes = req.bodyBytes; if (UniversalPlatform.isWeb) { try { File file =File.fromRawPath(bytes); return file; } catch (ex) { print(ex); } }
When I try to convert using universal IO package,Im getting Missing extension byte at 11.Please provide solution to convert uint8list byte to file or please provide solution to download file for flutter web using http client.
import 'package:universal_io/io.dart'; var req = await http.get(uri, headers: headers); var bytes = req.bodyBytes; if (UniversalPlatform.isWeb) { try { File file =File.fromRawPath(bytes); return file; } catch (ex) { print(ex); } }
Exception:FormatException: Missing extension byte (at offset 11)
The text was updated successfully, but these errors were encountered: