Trying to read the Binary data response from JMeter sampler and deserialize it in the BeanShlll Post Processor.
The flow is, controller first sends a request to a webservice, which returns binary data. When I view that in the JMeter, I see some junk chars.
I need to convert this to the actual object (my custom object) in the BeanShell script.
This is what I tried. But no luck. Or may be I am trying something dumb. PS: Newbie with IO stuff.
import java.io.ObjectOutputStream;
import com.package.MyClass;
MyClass myObj = new MyClass();
ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));
myObj = ois.readObject();
It does not work. It does not show anything. Any help?