Download to read offline


![Usage Place Byte Array to Object transformer from the place where you want to use transformation. returnClass attribute : The class of the message generated by the transformer. This is used if transformers are auto-selected and to validate that the transformer returns the correct type. Note that if you need to specify an array type you need postfix the class name with '[]'. For example, if you want return a an Orange[], you set the return class to 'org.mule.tck.testmodels.fruit.Orange[]'.](https://image.slidesharecdn.com/bytearraytoobjecttransformer-160828164450/75/Byte-array-to-object-transformer-3-2048.jpg)


The Byte Array to Object Transformer converts a byte array to an object by either de-serializing the array or converting it to a string. It is used by placing the transformer where transformation is needed and specifying the return class to validate the correct object type is returned, such as an array using a class name postfixed with '[]'.


![Usage Place Byte Array to Object transformer from the place where you want to use transformation. returnClass attribute : The class of the message generated by the transformer. This is used if transformers are auto-selected and to validate that the transformer returns the correct type. Note that if you need to specify an array type you need postfix the class name with '[]'. For example, if you want return a an Orange[], you set the return class to 'org.mule.tck.testmodels.fruit.Orange[]'.](https://image.slidesharecdn.com/bytearraytoobjecttransformer-160828164450/75/Byte-array-to-object-transformer-3-2048.jpg)
