downloadBytes function

void downloadBytes(
  1. List<int> bytes,
  2. MimeType mimeType,
  3. String fileName
)

Downloads bytes of type mimeType, saving a file with fileName.

Implementation

void downloadBytes(List<int> bytes, MimeType mimeType, String fileName) {
  var blob = Blob([bytes], mimeType.toString());
  downloadBlob(blob, fileName);
}