Hybrid View

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
    boris.barcelli is on a distinguished road

      0  

    Exclamation Unanswered: Is there a limitation in number/size of files sent to the src.sencha.io/data servic?

    Unanswered: Is there a limitation in number/size of files sent to the src.sencha.io/data servic?


    Hi,
    I have a bunch of 40 images loaded from my DB in my ST2 app when I am online, trying to transform them into dataUrls in order to store them in my local storage. I am following this tuto for that: http://www.sencha.com/learn/taking-sencha-touch-apps-offline/

    A
    fter around 10 files or 1600Mo of data, the service return with a 404 Not Found on all my service requests. Because you are caching all the images previously encoded, my theory is that you have a limitation in the size of this cache ? But I am not sure, any help here ?
    Any alternative solution would be great, I really need to store those images offline.
    Regards

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,811
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    There does seem to be a bug somewhere but you may want to look into local encoding solutions rather than doing this over the internet as it would be quite a bit faster. In fact the blog post about src.sencha.io even mentions this.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    Feb 2012
    Posts
    3
    Vote Rating
    0
    boris.barcelli is on a distinguished road

      0  

    Default


    Thank you for the quick answer Mitchell.
    Can you point me in the right direction for the blog post you talking about ? I have read many but didn't find anything really explicit on how to use a local solution. I reckon it may be :
    - Using the canvas encoding function (hopefully will not run in any security issue), do you have any code example with ST2 (or 1 will do) on hopw to implement this solution ?
    - Using the phonegap API
    Which one would you go for ?
    And, do you have any ETA n fixing on the sencha.io issue ?

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,811
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    http://www.sencha.com/learn/how-to-use-src-sencha-io/

    I would encode the images before app deployment.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

  5. #5
    Sencha User
    Join Date
    Jun 2010
    Posts
    59
    Vote Rating
    0
    dddesign is on a distinguished road

      0  

    Default


    I also get a lot of 404 of my images. I can't see an error pattern and the images aren't this big.
    see this webapp:
    http://mobile.moontools.ch/testapp_list2/

  6. #6
    Sencha User
    Join Date
    Apr 2010
    Posts
    107
    Answers
    30
    Vote Rating
    -1
    merrells is an unknown quantity at this point

      0  

    Default


    I just browsed your app and all the thumbnails and images were ok...

    John