DataUrlInfoTryAsBytes Method

Tries to retrieve the embedded Data as a Byte array.

Definition

Namespace: FolkerKinzel.DataUrls
Assembly: FolkerKinzel.DataUrls (in FolkerKinzel.DataUrls.dll) Version: 1.0.0+b1c843815044ca6fd87a144c9ff16386002c6473
C#
public bool TryAsBytes(
	out byte[]?? bytes
)

Parameters

bytes  Byte
If the method returns true, the parameter contains the embedded data. The parameter is passed uninitialized.

Return Value

Boolean
true if the Data embedded in the "data" URL could be converted to a Byte array, otherwise false.

Remarks

The method fails only if a decoding error occurs. The use of the method is particularly recommended if the embedded data of the "data" URL should be saved in a file.

See Also