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,791
    Answers
    3465
    Vote Rating
    833
    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,791
    Answers
    3465
    Vote Rating
    833
    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

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

      0  

    Default


    The thumbnails get loaded directly not through sencha.io but all the images afterwards (when you click an item of the list) through sencha.io and there I get some 404 if I test the web app on pc. But also on my mobile device. Can this happen if the response time is too long ( I situated in Switzerland )?
    J

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

      0  

    Default


    I have still this problem (see screenshot) on pc (testing) and on mobile device. Aufzeichnen_src-sencha-io.JPG

    any ideas? any recommendations?

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

      0  

    Default


    I still have some problems here. When I read the docs again I saw chapter "domain sharding" and implemented this in my webapp like this:

    Code:
            newPhotoTab = Ext.create('Ext.Carousel');
            for (i=1; i<=record.get('count'); i++) {
                shard = i % 4 +1;
                var photo = Ext.create('Ext.Img', {
                    src: 'http://src'+shard+'.sencha.io/http://moontools.ch/photo-moon-tool/images/'+ record.get('folder_name') +'/'+ record.get('img_name') + pad(i, 3) +'.jpg',
                });
                newPhotoTab.add(photo);
            }
    this is working in general, but I have still some 404 errors. what can I do?!

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi