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: 30
Registered: ‎06-14-2012
My Device: 9810

Re: Save form to server


liammccann wrote:
http://ditio.net/2008/07/17/php-json-and-javascript-usage/

This might help :smileyhappy:

Yes that's really helping me Liam :smileyhappy:, but, that tutorial about send text input but not file or image input, I already try using ajax to send text data to server, and it's working, like login, working fine to me. But sending an image, that's the big problem now. If I can convert an image using base64 to binary using HTML-5 FileReader, it will be nice and I read in this forum ( http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Issues-handling-uploaded-file-wi... ) that's BlackBerry Platform not yet support HTML5 FileReader.
Hope you can help me once again

Regular Contributor
Posts: 68
Registered: ‎06-12-2012
My Device: Blackberry Bold 9780

Re: Save form to server

I know you can take a picture and get the file location and encoding for it on blackberry, are you taking the image? Or trying to find it on your device?
Developer
Posts: 30
Registered: ‎06-14-2012
My Device: 9810

Re: Save form to server

[ Edited ]

liammccann wrote:
I know you can take a picture and get the file location and encoding for it on blackberry, are you taking the image? Or trying to find it on your device?

I'll do both Liam, take picture and use it, and or choose from device

Regular Contributor
Posts: 68
Registered: ‎06-12-2012
My Device: Blackberry Bold 9780

Re: Save form to server

As far is i know chooseing it isnt possible, all though i might be wrong
Developer
Posts: 30
Registered: ‎06-14-2012
My Device: 9810

Re: Save form to server


liammccann wrote:
As far is i know chooseing it isnt possible, all though i might be wrong

You right, I alredy use FileReader, and Canvas too, but all zero to me.
Is that possible if I put my apps in server, and webworks will open my apps just like regular browser ?

Developer
Posts: 314
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha

Re: Save form to server

You can select an existing file using <input type="file">

Isn't this what you are talking about?

 

Nuno
Developer
Posts: 30
Registered: ‎06-14-2012
My Device: 9810

Re: Save form to server

Yes Nuno, that's my problem now, I need to select an image from device and send it to server, I tried use input=file and using filereader to convert it, but FileReader not work in my device and using canvas to convert same result, zero, maybe you have experience in uploading image/photo, please share with me, that's gonna helping me a lot

Developer
Posts: 314
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha

Re: Save form to server

Hi there,
I'm away from my computer until tomorrow, but I'll check as soon as possible.
Nuno
Developer
Posts: 30
Registered: ‎06-14-2012
My Device: 9810

Re: Save form to server


nunodonato wrote:
Hi there,
I'm away from my computer until tomorrow, but I'll check as soon as possible.

Nice, thank's before Nuno

Regular Contributor
Posts: 68
Registered: ‎06-12-2012
My Device: Blackberry Bold 9780

Re: Save form to server

Yes, try putting the html files on server without the app being built might work better there :smileyhappy: if not it will be the same :smileyhappy: