getByteArrayFromResources

open fun getByteArrayFromResources(path: String): Array<Byte>

Get the content of a file from the resources.

Return

The content of the file.

Parameters

path

The path to the file.

Throws

If read process is not successful an IOException is triggered.

If not found an NullPointerException is triggered.