ResourceCallbackArgs.downloadStringFile Method

Module: ResourceCallbackArgs

Definition

Downloads a file from the specified URL and returns a string.

download_string_file(self, url: str) -> str

Parameters

url str
in The URL to the file.

Returns

str
The file as a string.

Exceptions

An error has occurred during Bioseal Library execution.
String downloadStringFile(String? url)

Parameters

url String
in The URL to the file.

Returns

String
The file as a string.

Exceptions

An error has occurred during Bioseal Library execution.
public string DownloadStringFile(string url)

Parameters

url string
in The URL to the file.

Returns

string
The file as a string.

Exceptions

An error has occurred during Bioseal Library execution.
public String downloadStringFile(String url) throws BiosealException

Parameters

url String
in The URL to the file.

Returns

String
The file as a string.

Exceptions

An error has occurred during Bioseal Library execution.
public func downloadStringFile(url: String) throws -> String

Parameters

url String
in The URL to the file.

Returns

String
The file as a string.

Exceptions

An error has occurred during Bioseal Library execution.
int id3BiosealResourceCallbackArgs_DownloadStringFile (
    ID3_BIOSEAL_RESOURCE_CALLBACK_ARGS hResourceCallbackArgs,
    const char * url,
    char * data,
    int * dataSize)

Parameters

in Handle to the ResourceCallbackArgs object.

url const char *
in The URL to the file.

data char *
out The file as a string.

dataSize int *
in Size of the ‘data’ buffer. Receives the minimum required buffer size to hold the ‘data’ string if the given one is too small (including the terminating NULL character), otherwise receives the number of characters in ‘data’ (excluding terminating NULL character).

Returns

int
An error code.
See id3BiosealError file for the list of possible error codes.