angelazno / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Upload Problem #444

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,
I am facing problem in uploading videos, the same old problem, it fails to 
upload videos larger than 4mb, i tried adding i also increased the timout to 
max, but still the same,
i am using the same code for c# which is given here in direct upload
http://code.google.com/apis/youtube/2.0/developers_guide_dotnet.html#Direct_Uplo
ad

it gives the error
An unhandled exception of type 'Google.GData.Client.GDataRequestException' 
occurred in Google.GData.Client.dll

Additional information: Execution of request failed: 
http://uploads.gdata.youtube.com/feeds/api/users/default/uploads

Original issue reported on code.google.com by Bakerz.j...@gmail.com on 21 Nov 2010 at 6:05

GoogleCodeExporter commented 8 years ago
I am getting the exact same problem using VB.net - PLS HELP! - thanks - P

        Dim settings As YouTubeRequestSettings = New YouTubeRequestSettings(applicationName, developerKey, username, password)
        Dim request As YouTubeRequest = New YouTubeRequest(settings)
        request.Settings.Timeout = Timeout.Infinite
        Dim newVideo As Video = New Video()
        newVideo.Title = "My Test Movie"
        newVideo.Tags.Add(New MediaCategory("Autos", YouTubeNameTable.CategorySchema))
        newVideo.Keywords = "cars, funny"
        newVideo.Description = "My description"
        newVideo.YouTubeEntry.Private = False
        newVideo.Tags.Add(New MediaCategory("mydevtag, anotherdevtag", YouTubeNameTable.DeveloperTagSchema))
        newVideo.YouTubeEntry.setYouTubeExtension("location", "Mountain View, CA")
        Dim vidFile As String = "C:\Software\VIDorini 2.1\MPG\2010-Dodge-Challenger-2B3CJ7DW7AH111130.mpg"
        Dim vidMIME As String = "video/mpeg"
        If File.Exists(vidFile) Then
            newVideo.YouTubeEntry.MediaSource = New MediaFileSource(vidFile, vidMIME)
            Dim createdVideo As Video = request.Upload(newVideo)
            currVideo = createdVideo

            MsgBox("Video uploaded...", MsgBoxStyle.Information, String.Empty)

             Dim videoFeed As Feed(Of Video) = request.Get(Of Video)(uri)
            lstYouTubeQuery.Items.Clear()
            printVideoFeed(videoFeed)
        End If

Original comment by reedmant...@yahoo.com on 29 Nov 2010 at 10:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
You should use the ResumableUploader class defined at:

http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/src/core/re
sumableupload.cs

Original comment by ccherub...@google.com on 18 Mar 2011 at 1:31