[TIMOB-1381] Android: Buffer Large XHR Downloads
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:56:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | android, buffer, feature, xhr |
Reporter | Don Thorp |
Assignee | Marshall Culpepper |
Created | 2011-04-15T02:50:53.000+0000 |
Updated | 2011-04-17T01:56:01.000+0000 |
Description
It's currently not possible to download a file larger than an application's remaining memory. Add a tiapp.xml configurable property to set the size in bytes when incoming data should be moved to a file vs stored in memory.
<property name="ti.android.httpclient.buffer.to.file.threshold" type="int">1000000</property>
This property should be namespaced by platform to allow for different limits on different platforms.
When this limit is reached open a temporary file and flush the existing data and append any additional data to the file instead of in memory.
Any word on this yet?
Can we get this Bumped I've got an App Waiting on it. I don't want it to fall over later when people release larger files for download.
Thinking about this, Perhaps this could be a download function as well, Give the HTTPClient a link and a path to save to. Direct Download to a file.
I've bumped the priority we'll try and get it worked in. There is still a lot going on for 1.5.
Thanks,
A dedicated file Download HTTP function would be very useful for a myriad of apps.
I'm hoping our client will approve the app with streaming functionality only for now, And we'll add download after 1.5
This continues to be a very high priority for us as well.
See also the KitchenSink failure that this causes: #1297
Bump - this is also a huge issue for our next iPad release. This issue seems to affect all platforms.
Adding an iOS tag as it's an issue on both platforms. The ability to tell an xhr request to save to a local file would be great.
Damien, we maintain separate tickets for each platform. Please feel free to open a ticket for iOS and reference this ticket. Assign that ticket to Ralf please.
Sorry about that. New ticket created at https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/2281-ios-option-to-download-directly-to-a-file"> https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi...
(from [2fa41c0ea6a442fbe6708590be130ed7f42e67b9]) fixed a redirect issue when some http servers don't correctly escape the redirect url. implemented buffering for httpclient (512k is the default, can be controlled w/ ti.android.httpclient.maxbuffersize property). added a new drillbit test suite for httpclient, fixed headers/formatting in a few files. [#1381 state:fixed-in-qa] [#2156 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/2fa41c0ea6a442fbe6708590be130ed7f42e67b9"> https://github.com/appcelerator/titanium_mobile/commit/2fa41c0ea6a4...
1.5.0.3ee6a97