Method GetBytes
GetBytes()
Gets the raw bytes of this resource.
Unlike text content, binary content is not cached to avoid excessive memory usage.
public byte[] GetBytes()
Returns
- byte[]
The raw bytes of the resource file.
Exceptions
- FileNotFoundException
Thrown when the resource file does not exist.
- IOException
Thrown when an I/O error occurs while reading the file.