2011-12-23 2 views

답변

3

물론 아무 것도 찾을 수 없습니다 : 이미지, 동영상 또는 기타 이진 파일을 C#에서, 또는 어떤 다른 닷넷 언어 업로드 할 수 있습니다 :

http://code.google.com/apis/picasaweb/docs/1.0/developers_guide_dotnet.html#PostPhotos ** **

여기에 전체의를 의 GData 닷넷 API :

http://code.google.com/p/google-gdata/

+0

내 게시물에서 말한 것처럼 예제를 하나도 갖고 있지 않습니까? Java doc 만 예제를 제공합니다. – user516883

+0

위에서 인용 한 "새로운 사진 게시"링크를 보셨습니까? 그것은 분명히 "예"처럼 보입니다.) – paulsm4

+0

죄송 합니다만, 어쩌면 제가 분명히해야합니다. 나는 picasa에 비디오를 업로드하려고 시도했는데, "직접적인 미디어 게시물은 현재 지원되지 않습니다." 동영상을 업로드하는 방법은 – user516883

0

는 희망이는 .NET API를 사용하여 Picasa에 동영상을 업로드하려고 한 사람들을 도움이 될 것입니다.

RequestSettings mySettings = new RequestSettings("PROGRAM NAME"); 
      mySettings.Timeout = 600000; 
      PicasaRequest pr = new PicasaRequest(mySettings); 
      PicasaService service = pr.Service; 
      service.setUserCredentials(username, password); 
      Uri postUri = new Uri(PicasaQuery.CreatePicasaUri(username, picasaalbumid)); 

PhotoEntry videoEntry = new PhotoEntry(); 
       videoEntry.Title = new AtomTextConstruct(AtomTextConstructElementType.Title,"Untitled.3gp");//I would change this to read the file type, This is just an example 
       videoEntry.Summary = new AtomTextConstruct(AtomTextConstructElementType.Summary,""); 
       MediaFileSource source = new MediaFileSource(stream,fileName,fileType); 
       videoEntry.MediaSource = source; 
       PicasaEntry entry = service.Insert(postUri,videoEntry); 
       stream.Close(); 
관련 문제