I am trying to get a file like this

FileSystemStorage fs = FileSystemStorage.getInstance();
        String fileName = fs.getAppHomePath() + filename;
        if(!fs.exists(fileName)) {
            Util.downloadUrlToFile(url, fileName, true);
        }

But I just see the spinner going forever and it never arrives, no errors 
reported in catch. One problem is if I visit the link in my browser it 
needs me to login to get it, and the url is https, so I guess my question 
is can you use downloadUrlToFile in this way? All my other requests require 
me to add a token to the url too, do I just add this to the download url ?

Is there any examples of downloading from https?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3488960e-0621-4c7b-b64b-aa538760396b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to