If you'd like to follow up with the maintainer of the client library,
the best way to do so would be to open a bug at
http://code.google.com/p/google-gdata/issues/list
That being said, if you're looking for a workaround you could try
using the .NET client library's support for resumable uploads. I
believe there's an example of this in the sample project at
http://code.google.com/p/google-gdata/downloads/detail?name=YouTube_SDK_1.8.0.0.msi
Cheers,
-Jeff Posnick, YouTube API Team
~ YouTube is hiring! ~ http://google.com/jobs/workyoutube ~
On May 29, 5:47 am, Ashish <ashish.softm...@gmail.com> wrote:
> Sure,
>
> I am getting following error while I uploading video file which size is
> greater then 400 MB .
>
> *'System.OutOfMemoryException'*
>
> Here is code:
>
> string developerKey = "AI39si6WJIJ_xBS2hBwYloXf_EW4nYkJ4uHvhTl"; //this
> is dummy developer key ,you can use any other developer key for testing
> purpose.
> string userName = userid;
> string password = password_;
> YouTubeRequestSettings settings = new
> YouTubeRequestSettings("example app", developerKey, userName, password);
> YouTubeRequest request = new YouTubeRequest(settings);
>
> Video newVideo = new Video();
>
> newVideo.Title = title;
> newVideo.Tags.Add(new MediaCategory("Autos",
> YouTubeNameTable.CategorySchema));
> newVideo.Keywords = "cars, funny";
> newVideo.Description = description;
> newVideo.YouTubeEntry.Private = false;
> newVideo.Tags.Add(new MediaCategory("mydevtag, anotherdevtag",
> YouTubeNameTable.DeveloperTagSchema));
>
> newVideo.YouTubeEntry.Location = new GeoRssWhere(37, -122);
> // alternatively, you could just specify a descriptive string
> // newVideo.YouTubeEntry.setYouTubeExtension("location",
> "Mountain View, CA");
>
> newVideo.YouTubeEntry.MediaSource = new
> MediaFileSource(filepath,
> "video/quicktime");
>
> GDataRequestFactory gdrf =
> (GDataRequestFactory)request.Service.RequestFactory;
> gdrf.Timeout =(7000) * 60 * 60; // one hour (1000 ms * 60s * 60
> m)
>
> Video createdVideo = request.Upload(newVideo); //* here is
> error **'System.OutOfMemoryException'*
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment