Hi, I was wondering what is the best way to post a binary image using picasa api.
On the web, I have a file upload tag, <input type="file" name="avatar"></input> On my python webserver, // already logon to picasa already, album_url is ok too thefile = self.request.params['avatar'] if (isinstance(thefile, cgi.FieldStorage)): file_name = thefile.filename imagebinary = thefile.value gd_client = gdata.photos.service.PhotosService() photo = gd_client.InsertPhotoSimple(album_url, 'New Photo', 'Uploaded using the API', imagebinary, content_type='image/ jpeg') When the user uploads the image, i get the binary image and try to use the InsertPhotoSimple(), but i get an error below TypeError: _getfullpathname() argument 1 must be (buffer overflow), not str Could I use the InsertPhotoSimple to upload a binary image? If so, what did i do wrong? If not, what is the best way to upload the binary image? Thanks John -- 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 google-picasa-data-...@googlegroups.com. To unsubscribe from this group, send email to google-picasa-data-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.