Hi,

Any idea why this REST way of uploading an image won't help:-

var requestBody =  constructContentBody(title, 'photo', content, 
contentType, imageSize);
          var fullRequestBody = ['Content-Type: multipart/related; 
boundary="END_OF_PART"', 
          '\n','Content-Length:',bodySize,'\n','MIME-version: 1.0',  
                               '\n\n',  
                              requestBody].join('');
       var request = gapi.client.request({
'path': url,
'method': method,
'headers': hEaders, 
'body' :  fullRequestBody
});
       
       request.execute(function(result) { 
alert(result.kind+'');
 });
      
The file binary data is obtained from FileReader.readAsBinaryString and 
appended to the request body.

Also, what is the Content-Length required for the POST request, is it the 
file size or the (size of the file + the length of the atom xml for 
meta-data)?

Regards,

Sumit

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to