Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 71
Registered: ‎02-06-2013
My Device: 9900
My Carrier: Rogers
Accepted Solution

OS 10.2 Blob builder problems

It seems that OS 10.2 has broken several parts of my WebWorks app.

Have there been some changes to the way blob builder functions in the newer builds?


This line on 10.1:


var blob = new Blob([data], {type:'application/pdf'});


successfully creates a Blob file based on the data contained in the "data" variable.

But on 10.2, the Blob is malformed.


Here are the web inspector outputs of the Blobs in 10.1 and 10.2

10.1 Properly formed



10.2 Malformed



Really need some help to correct this issue.



Posts: 856
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: OS 10.2 Blob builder problems

Which version are you testing this on?

Is there any way that you might have overwritten the Blob object somehow?


It could have been temporarily broken - but you see how in your 10.2 output there is no constructor, and the prototype is different? In the version I've tried it on, those values are correct and match with 10.1. I'm on a very new 10.2 build, so it does look good for your app being working on the next release.

Tim Windsor
Open Source Technical Lead
Posts: 71
Registered: ‎02-06-2013
My Device: 9900
My Carrier: Rogers

Re: OS 10.2 Blob builder problems

I am using the latest 10.2 simulator build, not sure which version it is. I think you may be on the right track though, I was overloading the Blob constructor. I'm going to go through the blob constructor and see where the problem is in there. Not sure why I was using my own constructor (6 months and many apps later), but maybe I'll also try using the default object.