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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
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.

 

 

Retired
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
Highlighted
Developer
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.