has anyone been able to upload a video using this API. I am also getting the same error with same code.
Thanks On Wednesday, 19 July 2017 12:03:18 UTC+5:30, s spx wrote: > > Hi all: > I am trying to upload a video ti picasaweb by use api, but get a > HttpResponseException: > > 07-19 14:04:41.408: W/System.err(30378): > com.google.api.client.http.HttpResponseException: 500 Internal Server Error > 07-19 14:04:41.409: W/System.err(30378): Unable to store upload data for > asynchronous uploading. > 07-19 14:04:41.410: W/System.err(30378): at > com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1054) > 07-19 14:04:41.411: W/System.err(30378): at > com.ubnt.fr.picasawebupload.gdata.GDataClient.execute(GDataClient.java:107) > 07-19 14:04:41.411: W/System.err(30378): at > com.ubnt.fr.picasawebupload.picasa.PicasaClient.executeInsertPhotoEntryWithMetadata(PicasaClient.java:170) > 07-19 14:04:41.412: W/System.err(30378): at > com.ubnt.fr.filesyncservice.picasaweb.PicasawebFileSync.postVideoWithMetaData(PicasawebFileSync.java:432) > 07-19 14:04:41.413: W/System.err(30378): at > com.ubnt.fr.filesyncservice.picasaweb.PicasawebFileSync.uploadVideo(PicasawebFileSync.java:622) > > > here is my code: > > private void uploadVideo() throws IOException, ServiceException > { > > > Log.i("spx-test", "uploadVideo begin"); > > URL albumPostUrl = new > URL("https://picasaweb.google.com/data/feed/api/user/100292483542432241775/albumid/6441465220057780321"); > PhotoEntry myVideo = new PhotoEntry(); > myVideo.setTitle(new PlainTextConstruct("birthday.mov")); > myVideo.setDescription(new PlainTextConstruct("My grandpa's 80th > birthday.")); > myVideo.setClient("myClientName"); > > MediaFileSource myMedia = new MediaFileSource(new > File("/sdcard/test.mp4"), "video/mp4"); > myVideo.setMediaSource(myMedia); > Log.i("spx-test", "uploadVideo 111111"); > PhotoEntry returnedVideo = myService.insert(albumPostUrl, myVideo); > Log.i("spx-test", "upload success"); > > // Fetching the video status (will always be "pending" right after posting a > video). > String videoStatus = returnedVideo.getVideoStatus(); > } > > > > -- 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 google-picasa-data-api+unsubscr...@googlegroups.com. To post to this group, send email to google-picasa-data-api@googlegroups.com. Visit this group at https://groups.google.com/group/google-picasa-data-api. For more options, visit https://groups.google.com/d/optout.