static fun readResource(name: String!, aClass: Class<*>!): ByteArray!
Read the resource file to a byte array.
name - String!: the name of file
aClass - Class<*>!: the class of resource
IOException - if an I/O error occurs
Return
ByteArray!: the data of resource as a byte array