BoxClient.GetFileContentByPathAsync Method

Definition

Get file content using path

public virtual System.Threading.Tasks.Task<byte[]> GetFileContentByPathAsync(string filePath, bool? inferContentType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileContentByPathAsync : string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
override this.GetFileContentByPathAsync : string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Overridable Function GetFileContentByPathAsync (filePath As String, Optional inferContentType As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())

Parameters

filePath
String

File Path

inferContentType
Nullable<Boolean>

Infer Content Type

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Byte[]>

The Get file content using path response.

Remarks

Retrieves the file contents from Box using path.

Applies to