Differences
This shows you the differences between the selected revisions of the page.
| library_session_getfile 2022-07-12 | library_session_getfile 2022-10-21 (current) | ||
| Line 1: | Line 1: | ||
| ====== Session.GetFile Method ====== | ====== Session.GetFile Method ====== | ||
| - | Provides [[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream|''System.IO.Stream'' interface]] to a remote file contents. | + | Provides [[https://learn.microsoft.com/en-us/dotnet/api/system.io.stream|''System.IO.Stream'' interface]] to a remote file contents. |
| //For an efficient download to a physical local file, use [[library_session_getfiletodirectory|''Session.GetFileToDirectory'']] and similar methods instead.// | //For an efficient download to a physical local file, use [[library_session_getfiletodirectory|''Session.GetFileToDirectory'']] and similar methods instead.// | ||
| Line 25: | Line 25: | ||
| ==== [[return_value]] Return Value ==== | ==== [[return_value]] Return Value ==== | ||
| - | ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream|System.IO.Stream]]'' implementation that can be used to read the remote file contents. It implements the ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.read|Read]]'' and ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.dispose|Dispose]]'' methods only, and other methods derived from these two, like ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.close|Close]]'' and ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.copyto|CopyTo]]''. Seeking and cancelling the transfer is not supported. Calling the ''Dispose'' (or the ''Close'') will finish downloading the file. | + | ''[[https://learn.microsoft.com/en-us/dotnet/api/system.io.stream|System.IO.Stream]]'' implementation that can be used to read the remote file contents. It implements the ''[[https://learn.microsoft.com/en-us/dotnet/api/system.io.stream.read|Read]]'' and ''[[https://learn.microsoft.com/en-us/dotnet/api/system.io.stream.dispose|Dispose]]'' methods only, and other methods derived from these two, like ''[[https://learn.microsoft.com/en-us/dotnet/api/system.io.stream.close|Close]]'' and ''[[https://learn.microsoft.com/en-us/dotnet/api/system.io.stream.copyto|CopyTo]]''. Seeking and cancelling the transfer is not supported. Calling the ''Dispose'' (or the ''Close'') will finish downloading the file. |
| ===== [[remarks]] Remarks ===== | ===== [[remarks]] Remarks ===== | ||