I'm using iOS in front end to upload the image by using the following encode script,
Ti.Utils.base64encode(get_image);
In back end i'm using the following script to decode the image in Rails.
Base64.decode64(encrypted_image)
Now, this is working fine in Local ENV. (Time taken to upload 10sec). Now the problem is the same script takes 30seconds in Production ENV.
How to optimize this?