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
final response = await get(
Uri.parse("https://servicebus2.caixa.gov.br/portaldeloterias/api/resultados/download?modalidade=Mais-Milionaria"),
);
if (response.statusCode == 200) {
final Excel excel = Excel.decodeBytes(response.bodyBytes);
for (var table in excel.tables.keys) {
print(table); // Sheet Name
}
}
It throws the following exception when trying to print the table name: Damaged Excel file: Corrupted Excel file.
The text was updated successfully, but these errors were encountered:
I can't read this xlsx file, obtained from an http request:
https://servicebus2.caixa.gov.br/portaldeloterias/api/resultados/download?modalidade=Mais-Milionaria
Example code:
It throws the following exception when trying to print the table name:
Damaged Excel file: Corrupted Excel file.
The text was updated successfully, but these errors were encountered: