I also accomplished uploading a stream with the python client library where I added another optional parameter to the post method: binary_data, i then added another if clause and just sent my binary data at the point where it would normally read from the file handle
I am encoding jpegs in AS3 and then sending them of as a POST request to my server and then using the python client library and my modified POST method. It works well, but I'd really prefer if they added POST to the Javascript client library so I could alleviate a lot of the traffic through my server and just send directly from the client to Picasa Web Albums. -Stefan On 10/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > What about adding a method to MediaSource letting us using a string > instead of a file on a filesystem: > > class tmpMediaSource(gdata.MediaSource): > def loadString(self, data, content_type, file_name): > self.file_handle = StringIO.StringIO(data) > self.content_type = content_type > self.content_length = len(data) > self.file_name = file_name > > All the best, > > Samuel T. Cossette > > On Oct 10, 5:42 pm, Amelie Mercier <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm using the gdata python library to interact with Picasa. > > > > How could I use something else than a file handle as my media_source > > in GDataService.Post? > > > > Thanks, > > > > --am > > > > > -- Draw online with other people at: http://www.DrawAndShare.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Data 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-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
