Welcome!

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

Reply
Developer
mikefromcanada
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.1.png

 

10.2 Malformed

10.2.png

 

Really need some help to correct this issue.

 

 

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 822
Registered: ‎07-15-2008
My Device: Z10
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
Application Development Advisor II
Please use plain text.
Developer
mikefromcanada
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.
Please use plain text.