diff --git a/packages/nextcloud/lib/src/webdav/client.dart b/packages/nextcloud/lib/src/webdav/client.dart index e8efcbeba9b..4360b453a98 100644 --- a/packages/nextcloud/lib/src/webdav/client.dart +++ b/packages/nextcloud/lib/src/webdav/client.dart @@ -200,8 +200,7 @@ class WebDavClient { ); /// download [remotePath] and store the response file contents to String - Future download(final String remotePath) async => - Uint8List.fromList((await (await downloadStream(remotePath)).join()).codeUnits); + Future download(final String remotePath) async => (await downloadStream(remotePath)).bodyBytes; /// download [remotePath] and store the response file contents to ByteStream Future downloadStream(final String remotePath) async => _send(