Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter Web : Unable to convert uint8list to File #25

Open
suriyaKalidoss21 opened this issue Sep 30, 2021 · 3 comments
Open

Flutter Web : Unable to convert uint8list to File #25

suriyaKalidoss21 opened this issue Sep 30, 2021 · 3 comments

Comments

@suriyaKalidoss21
Copy link

suriyaKalidoss21 commented Sep 30, 2021

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)

@naveenbharadwaj19
Copy link

@suriyaKalidoss21 did you find any solution regarding this ? #30

@tanjunior
Copy link

Same problem for me too

@bayatmasoud
Copy link

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants