Community Questions & Answers

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"...

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

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