Community Questions & Answers
image to base64
Hi, someone can explain me how can I encode an image file to a base64 string? Thanks
How does inserting a multiple-byte Number into a Buffer work?
Going from the [Titanium Intro Series](http://developer.appcelerator.com/blog/2011/04/titanium-mobile-intro-series-buffer-and-codec.html), I'm trying to send a series of 4-byte integers into a buffer. The example code and API seem to imply that buffers are...
encode data with a password key
Hi! I'd like to encript data using a key, but i find only these three thing: ~~~ Ti.Utils.base64encode("test");//encode using 64bytes Ti.Utils.md5HexDigest("test");//encode using md5 Ti.Utils.sha1("test");//encode using...
URL encode
Hi, I thought this was possible through the Ti.Codec module... but that seems to have changed dramatically with 1.7 to be converting in/out of buffers. So, to cut a short questions shorter, how can I encode a string to pass as along as a parameter in a...
Encode image to base64
Hi! I've been trying to encode an image taken with the camera to a base64 string, to be able to send it as json. Could someone please help me with a working example? I've tried several things found in this Q&A. I thought it would be as simple as...
Convert url-encoded data?
Hi; Im using jSON to receive remote data using a normal createHTTPClient() call. Its loads data normally. Is there a easy way to decode url-encoded data client-side? So i can output: "Sample Text" with Quotes instead of "Sample Text"...
Image encoding and Decoding - for updation of image in MYSQL database?
I need to upload the image in Mysql database, i use the following code, var file = Ti.Filesystem.getFile('KS_nav_ui.png'); var blob1 = file.read(); var base64=Ti.Utils.base64encode(test); in database it was updated as blob file with 4bytes as...
XHR Encoding Accept Type
I've been doing some testing, and I'm pretty sure that the XHR object Either Doesn't Send, Or doesn't support HTTP_ACCEPT_ENCODING Types, As in GZIP or Deflate, As i have some 16k data that comes closer to 2k when deflated or Gzipped. Hopefully one of the...
xhr Rss Feed - Special Characters
Hi.. From the KitchenSink project I used the xhr xml example. I have a RSS feed (including special danish characters æøå): http://snowboard.riders.dk/feed/ which Im trying to show in the android browser. I have developed several native applications in...
Passing parameters with HTTP Client, double encoding!
I am using Ti.Network.createHTTPClient to pass some info to a PHP page, for example: ~~~ var email = "john@website.com"; var encodedEmail = encodeURIComponent(email); this.HTTPClient.open('GET', someAddress + "?email=" +...
Base64 Encode/Decode with Ti Mobile
Hi, Just wondering if iPhone and Android are capable of encoding and decoding base64 encoded data. I want to read image data from a database and display it various views. If not, are there other approaches to this I could use? Regards Mark
Showing 1-11 of 11