I used the apache royal 0.9.7 stable to implement a feature to display pdf from server.
Here is a sample code:
var byteCharacters:String = unescape(encodeURIComponent(pdfData));
var byteNumbers:Array = new Array(byteCharacters.length);
for (var i:int = 0; i < byteCharacters.length; i++) {
byteNumbers[i] = byteCharacters.charCodeAt(i);
}
var byteArray:Uint8Array = new Uint8Array(byteNumbers);
var file:Blob = new Blob([byteArray], {type: 'application/pdf'} as
BlobPropertyBag);
var fileUrl:String = URL.createObjectURL(file);
window.open(fileUrl);
When trying to view the pdf file, I get this error in console:
ReferenceError: BlobPropertyBag is not defined
I saw same issue on https://github.com/apache/royale-compiler/issues/81, then I tried the nightly 0.9.8, but I still have the same issue.
Can anyone help why the dependency is not found ?