Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Update content of document using resumableUploader returns 411 length required
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sérgio  
View profile  
 More options Apr 2 2012, 7:49 am
From: Sérgio <sergio.ab...@gmail.com>
Date: Mon, 2 Apr 2012 04:49:44 -0700 (PDT)
Local: Mon, Apr 2 2012 7:49 am
Subject: Update content of document using resumableUploader returns 411 length required

Hello,

I'm trying to update the content of document using resumableuploader, but
alway get 411 error, what i'm wrong in following code?

     *  'pDocEntry As Document  -> Document to update*
*
*
*        Dim info As New IO.FileInfo(file)*
*        Dim tExt As String = info.Extension.ToUpper().Substring(1)*
*        Dim contentType As String =
CType(DocumentsService.DocumentTypes(tExt), String)
*
*
*
*        Dim stream As IO.FileStream = info.Open(IO.FileMode.Open,
IO.FileAccess.Read, IO.FileShare.ReadWrite)*
*
*
*        ' Chunk size in MB*
*        Dim CHUNK_SIZE As Integer = 1*
*
*
*        Dim cla As New ClientLoginAuthenticator("bla",
ServiceNames.Documents, "<user>", "<pass>")*
*
*
*        'Set up resumable uploader and notification*
*        Dim ru As New ResumableUploader(CHUNK_SIZE)*
*        AddHandler ru.AsyncOperationCompleted, AddressOf
ru_AsyncOperationCompleted*
*        AddHandler ru.AsyncOperationProgress, AddressOf
ru_AsyncOperationProgress  '  ru_AsyncOperationProgress(ru,
AsyncOperationProgressEventArgs)*
*
*
*        ' Add the upload uri to document entry*
*        Dim Uri1 As  New Uri(pDocEntry.AtomEntry.Content.AbsoluteUri)*
*    *
*        ru.UpdateAsync(cla, Uri1, stream, contentType, New Object())*


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.