It could be that your proxy server requires authentication using basic
auth. You should find out from your network administrator.

Cheers,
-Jeff

On Nov 21, 1:26 am, Julien Mengelle <[EMAIL PROTECTED]> wrote:
> Well, i have already set it at start of my code :
>
> System.setProperty("http.proxyHost", ip);
> System.setProperty("http.proxyPort", port);
>
> System.setProperty("https.proxyHost", ip);
> System.setProperty("https.proxyPort", port);
>
> I have also tried to send photo without metadata, with no result.
>
> I'm not an network expert, and nearly never worked with proxy, is
> there different kind of proxy ? Can it be a problem of compatibility
> with request type ?
>
> Cheers,
> -Julien
>
> On 20 nov, 22:06, "Jeff Fisher (Google)" <[EMAIL PROTECTED]>
> wrote:
>
> > I think you are right. Try setting a proxy server in your Java code /
> > runtime:
>
> >http://code.google.com/apis/gdata/articles/proxy_setup.html#java
>
> > Cheers,
> > -Jeff
>
> > On Nov 20, 8:18 am, Julien Mengelle <[EMAIL PROTECTED]> wrote:
>
> > > Could it be that i use a proxy ?
> > >  (i can't test without it since it's my company choice)
>
> > > On 20 nov, 15:14, Julien Mengelle <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > i'm trying to handle Picasa web albums API, and i managed to realize
> > > > most of the function that i wanted.
>
> > > > But i still can't upload a new photo, i got the following error :
>
> > > > java.io.IOException: Error writing request body to server
> > > >         at sun.net.www.protocol.http.HttpURLConnection
> > > > $StreamingOutputStream.checkError(Unknown Source)
> > > >         at sun.net.www.protocol.http.HttpURLConnection
> > > > $StreamingOutputStream.write(Unknown Source)
> > > >         at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
> > > >         at java.io.BufferedOutputStream.write(Unknown Source)
> > > >         at com.google.gdata.data.media.MediaSource$Output.writeTo
> > > > (MediaSource.java:88)
> > > >         at com.google.gdata.data.media.MediaBodyPart
> > > > $MediaSourceDataHandler.writeTo(MediaBodyPart.java:74)
> > > >         at 
> > > > javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
> > > >         at 
> > > > javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:874)
> > > >         at 
> > > > javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:444)
> > > >         at com.google.gdata.client.media.MediaService.insert
> > > > (MediaService.java:330)
> > > >         at com.orangeVallee.rosebud.service.picasa.Picasa.addPhoto
> > > > (Picasa.java:171)
> > > >         at com.orangeVallee.rosebud.service.picasa.PicasaUtilities.main
> > > > (PicasaUtilities.java:52)
>
> > > > My code look like this (just a part) :
>
> > > > PhotoEntry myPhoto = new PhotoEntry();
> > > > myPhoto.setTitle(new PlainTextConstruct("test"));
> > > > myPhoto.setDescription(new PlainTextConstruct("test description"));
> > > > myPhoto.setClient("myClientName");
>
> > > > MediaFileSource myMedia = new MediaFileSource(new File(filename),
> > > > "image/jpg");
> > > > myPhoto.setMediaSource(myMedia);
>
> > > > PhotoEntry returnedPhoto = myService.insert(albumPostUrl, myPhoto);
>
> > > > ("albumPostUrl" is the feed url for the album, and "filename" the
> > > > local path of photo)
>
> > > > Any thing i missed?- Masquer le texte des messages précédents -
>
> > - Afficher le texte des messages précédents -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to