apidocs / com.srv4pos.commons.io / BytesUtils / readResource

readResource

static fun readResource(name: String!, aClass: Class<*>!): ByteArray!

Read the resource file to a byte array.

Parameters

name - String!: the name of file

aClass - Class<*>!: the class of resource

Exceptions

IOException - if an I/O error occurs

Return
ByteArray!: the data of resource as a byte array