DataUrlInfoTryAsBytes Method
Tries to retrieve the embedded
Data as a
Byte array.
Namespace: FolkerKinzel.DataUrlsAssembly: FolkerKinzel.DataUrls (in FolkerKinzel.DataUrls.dll) Version: 1.0.0+b1c843815044ca6fd87a144c9ff16386002c6473
public bool TryAsBytes(
out byte[]?? bytes
)
Public Function TryAsBytes (
<OutAttribute> ByRef bytes As Byte()
) As Boolean
public:
bool TryAsBytes(
[OutAttribute] array<unsigned char>^% bytes
)
member TryAsBytes :
bytes : byte[] byref -> bool
- bytes Byte
- If the method returns true, the parameter contains
the embedded data. The parameter is passed uninitialized.
Booleantrue if the
Data embedded in the "data" URL could be
converted to a
Byte array, otherwise
false.
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.