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
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_l
Hi am,
You could use something like StringIO which holds data and exposes a
read method so it acts like a file.
Here's an example which creates a new album, adds an image, then
deletes the album. The test image's data is in a string buffer instead
of a file.
import StringIO
import atom
import g