10 messages in com.googlegroups.google-picasa-data-apiRe: Picasa problem with reading chunk...
FromSent OnAttachments
joa...@hagerling.se27 Aug 2007 03:16 
joa...@hagerling.se28 Aug 2007 06:29 
Ryan Boyd (Google)28 Aug 2007 08:54 
joa...@hagerling.se29 Aug 2007 00:15 
Ryan Boyd (Google)29 Aug 2007 18:56 
joa...@hagerling.se30 Aug 2007 00:52 
Ryan Boyd (Google)30 Aug 2007 16:02 
joa...@hagerling.se31 Aug 2007 00:38 
Ryan Boyd (Google)04 Sep 2007 21:47 
Ryan Boyd (Google)23 Sep 2007 22:25 
Subject:Re: Picasa problem with reading chunked data
From:Ryan Boyd (Google) (api.@google.com)
Date:08/29/2007 06:56:00 PM
List:com.googlegroups.google-picasa-data-api

Hi,

Okay, so I've been able to recreate this problem in Java-- and I think I'm forming the request correctly. I'll work more on seeing what we can do to get chunked encoding to work.

In the meantime, I think you should be able to prevent chunked encoding. Please add a request header called 'Content-Length' with the value being the number of bytes in the image you're uploading and try uploading the image separate from the XML. Please let me know if adding this header prevents the chunked encoding method from being used.

I'll continue working on the chunked issue though and get back to you on this thread as I find out more.

Cheers, -Ryan

On Aug 29, 12:15 am, "joa@hagerling.se" <joa@hagerling.se> wrote:

Hello Ryan thanks for the response!

The problem is the same when emulated in a WTK. You cant run the code inside JVM since the Genereic connection framework aint the same.

The exact same problem occurs when the data gets chunked (i.e pictures over 2048 bytes) for uploads without XML/metadata. Im guessing you use a http 1.1 server since the response is a http1.1 error, so maybe you have disabled chunked "encoding" for security reasons or something?

I can enable and disable the problem in the WTK emulator by just changing from http 1.1 to 1.0 but as I said thats not possible on the j2me device. The only thing as far as i can see that is changing in the network traffic is that the data gets chunked in 1.1.

On Aug 28, 5:54 pm, "Ryan Boyd (Google)" <api.@google.com> wrote:

On Aug 28, 6:29 am, "joa@hagerling.se" <joa@hagerling.se> wrote:

Since im not able to see what chunks the picasa server receives its very hard for me to search for errors.

Please Ryan or Sven or someone else with the knowledge; Can picasa accept and handle http 1.1 chunked requests together with multipart/ related Mime type. A simple yes or no is enough so i have something to work against.

Crossing my fingers for a first respons on these forums =)

Hi,

I'm looking into this and will let you know what I find out. In the meantime, have you been able to reproduce the problem when running your Java code inside a standard JVM (and not on a j2me device)? Also, have you been able to upload the same images separate from the XML (ie, no multipart)? We haven't had similar issues reported before, so I'm just trying to narrow things down a bit.

Thanks, -Ryan