Hi all,

I'm doing an image upload using the java api, but when I do a batch of 
them, if internet connectivity is dropped or the OS sleeps (e.g., I close 
the lid of my laptop), instead of throwing an exception (as I'd expect) and 
allowing me to retry/resume, the method just hangs in 
MediaServiceClass.insert - it never drops out or returns. 

I'm doing this on a background thread, so could just detect when this 
happens and kill the thread (i.e., implement my own timeout functionality) 
but it's a bit brutal - it'd be much nicer if the web request just failed 
or timed out and throw me back into the normal program flow. 

Is there anything I can do to change the behaviour? I considered changing 
the code to use resumable uploads, to see if that gave me more control over 
the HTTP requests etc, but before I do such a major refactor I'd like to 
know if there's something I'm missing. :)

Mark

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to