Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Is it possible to download an image with a specified URL to a folder within the space of the web app, say in /images, to be accessed locally?

I say this because I'm writing a mobile web app wrapped with TriggerIO but the native saving functionality is super slow and freezes up the phone in the process, so any touch interactions have a 5+ second delay.

Are there any known javascript options to get around this?

Thanks!

share|improve this question
no way with JS. But is possible with some proxy. something like http://savetodisk.com/?get=http://urlofthepic.jpg and download it on serverside and send it as binary data to user – E L Apr 4 at 1:11
1  
@Garrett: by "native saving functionality" do you mean forge.file.saveURL? Surprised that you've had unresponsiveness... is this iOS or Android? – monk Apr 4 at 16:00
@monk iOS — I've had logs that show a wait of up to 7 seconds on an iPhone 5 with full WiFi, but the usual is 1-2 seconds. [FORGE] 'Saving image: files.parse.com/aac0413c-eada-4602-9451-2ee5da7d1241/… [0.002s]' all.js:2[FORGE] 'Saved local copy of files.parse.com/aac0413c-eada-4602-9451-2ee5da7d1241/… [7.405s]' Here's my code: debug("Saving " + url); forge.file.saveURL(url, function(file) { debug("Saved " + url, file); – Garrett Apr 5 at 6:15
any update on this? i'm still having freezing/lag and incredibly slow download speed (even on 4g/wifi). – Garrett Apr 10 at 1:34

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.