Browse Source

fix(nextcloud): Downloading file via WebDAV to memory

pull/514/head
jld3103 1 year ago
parent
commit
c8c8cdec72
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 3
      packages/nextcloud/lib/src/webdav/client.dart

3
packages/nextcloud/lib/src/webdav/client.dart

@ -200,8 +200,7 @@ class WebDavClient {
);
/// download [remotePath] and store the response file contents to String
Future<Uint8List> download(final String remotePath) async =>
Uint8List.fromList((await (await downloadStream(remotePath)).join()).codeUnits);
Future<Uint8List> download(final String remotePath) async => (await downloadStream(remotePath)).bodyBytes;
/// download [remotePath] and store the response file contents to ByteStream
Future<HttpClientResponse> downloadStream(final String remotePath) async => _send(

Loading…
Cancel
Save