-
22 Feb 2012 11:49 AM #1
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/
After 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
-
22 Feb 2012 1:57 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3102
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
22 Feb 2012 2:09 PM #3
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 ?
-
22 Feb 2012 2:16 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3102
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Mar 2012 3:29 PM #5
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/
-
1 Mar 2012 4:04 PM #6
I just browsed your app and all the thumbnails and images were ok...
John
-
1 Mar 2012 11:04 PM #7
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
-
11 Mar 2012 10:34 AM #8
I have still this problem (see screenshot) on pc (testing) and on mobile device. Aufzeichnen_src-sencha-io.JPG
any ideas? any recommendations?
-
20 Mar 2012 12:01 PM #9
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:
this is working in general, but I have still some 404 errors. what can I do?!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); }


Reply With Quote