Send Byte Output to Jasper Bean

Is there a way to take the byte output of a report (PDF in our case) and display it in the Jasper Report bean viewer? Something like the following:

var byteOuput = plugins.jasperPluginRMI.runReport()

elements.bean_jasper_preview.showReport( byteOuput, reportName, reportArguments )