download static method
Implementation
static Future<Uint8List> download(String name) async {
// Create a MultipartRequest object to hold the file data
var request = Request('GET', urlFile(name));
final re = await request.send();
if (re.statusCode == 200 || re.statusCode == 204) {
return re.stream.toBytes();
}
throw Exception('cant download $name');
}