Skip to content

Instantly share code, notes, and snippets.

@Frankdroid7
Last active December 13, 2022 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Frankdroid7/f35e3116743ab46b5b7c61c02fe73167 to your computer and use it in GitHub Desktop.
Save Frankdroid7/f35e3116743ab46b5b7c61c02fe73167 to your computer and use it in GitHub Desktop.
Future<Uint8List> getPdfBytesFromUrl(String pdfUrl) async {
final response = await http.get(Uri.parse(pdfUrl));
Uint8List bytes = response.bodyBytes;
return bytes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment