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
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: Tutorial for Writing WebWorks Extension for PlayBook

[ Edited ]

@interfaSys

 

Actually I had this custom extension before the release of io.file Smiley Wink I thought I could replace my custom extension with the real one from RIM. But still I'm using my custom extension Smiley Happy

Developer
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: Tutorial for Writing WebWorks Extension for PlayBook

Attaching a sample code for the extension Smiley Very Happy

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Tutorial for Writing WebWorks Extension for PlayBook

The challenges that you're facing with the stringToBlob() and blobToString() are the same ones that we were faced with.  Essentially XHR has a maximum string length for a POST, which means there's a maximum Blob size that you can create from JavaScript without solving this challenge.

 

There are possible solutions to this.. first that comes to mind is a multi-part upload.  But since the "webserver" is virtualized to create our extensions down in ActionScript, we weren't able to use multi-part out of the box.

 

The other solution is to chunk your data.. when the maximum string size is met split it up into multiple chunks that are then put together back on the ActionScript server side.

 

Getting to the bottom of this and delivering a solution was unfortunately cut from scope and it didn't catch our Release Train.  

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Tutorial for Writing WebWorks Extension for PlayBook

[ Edited ]

@P - I see. I understand better now why there were some differences in the signatures. Well done! Does that mean that we can take any AIR functionnality and expose it to our Javascript apps without having to wait for the Webworks API to be extended? It would be great to have copy and paste Smiley Happy.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Developer
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: Tutorial for Writing WebWorks Extension for PlayBook

@Tim

 

Thanks for the input. I'll surely check into its details Smiley Happy

Developer
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: Tutorial for Writing WebWorks Extension for PlayBook

[ Edited ]

@interfaSys

 

I'm not exposed to all the functionalities in AIR. But I feel the features that can be done using ActionScript can be added to WebWorks using extension. I have been working on another extension -- QR CODE SCANNER, which seems to be in good shape  Smiley Very Happy

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Tutorial for Writing WebWorks Extension for PlayBook

Hehe. Can't wait to see it Smiley Happy

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Retired
Posts: 10
Registered: ‎01-29-2009
My Device: Torch

Re: Tutorial for Writing WebWorks Extension for PlayBook

@Praveen

 

Can I ask which QR Code library you're using for your extension?  I know of an enterprise customer who is interested in this exact extension you are building.

 

Thanks,
Adam 

Adam Abramski
Product Manager for WebWorks Platform
Handheld Division
Developer
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: Tutorial for Writing WebWorks Extension for PlayBook

[ Edited ]

Hi Adam,

Good to hear from RIM. Smiley Happy QR Code Library that is been used for this extension is ZXing library. May I know is there is any update relating to this extension from the RIM. I've been discussing about QR Code implementation with Tim for a while.

Developer
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: Tutorial for Writing WebWorks Extension for PlayBook

Anyone from RIM who can give me an extra push for the QR Code extension implementation.