Results 1 to 3 of 3

Thread: How to decode base64 encoded string as file and store locally using sencha touch2

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    28
    Vote Rating
    0
      0  

    Default Unanswered: How to decode base64 encoded string as file and store locally using sencha touch2

    I am getting base64 encoded string response of pdf(tif) file form server. I want to decode it and save as a (pdf)file in sd card (locally). After saving the file i want to open this file in child browser. I am not getting how to decode and save response as pdf file. Please help me on this issue.
    is it possible to convert base64 encoded string to a pdf file in sencha touch 2?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Answers
    3884
    Vote Rating
    1297
      0  

    Default

    If this is just a web app you won't be able to store locally on the phone. You can save the base64 string in localstorage
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    28
    Vote Rating
    0
      0  

    Default @ mitchellsimoens

    thank you . for quick reply.

    its ipad application so i written ios plugin and i done it.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •