Yes, that really helps!  Thanks very much!

On 11/19/10, Bertrand Delacretaz <[email protected]> wrote:
> Hi,
>
> On Fri, Nov 19, 2010 at 6:41 PM, Zhongmiao Li <[email protected]> wrote:
>> ...now I'm using HttpClient to upload file, but still unsuccessful!  The
>> error
>> code is 415, unsupported media, but the file I want to update is just a
>> JPG!...
>
> See the upload method of the SlingIntegrationTestClient for an example
> upload that is known to work.
>
> The class is in the same package as the HttpTestBase class referred to
> earlier in this thread.
>
> You could actually use those classes as a simple Sling client instead
> of creating your own - they're used in our integration tests so you
> can be sure they will work.
>
> -Bertrand
>


-- 
Best regards
Li Zhongmiao
Digital Media, College of Computer Science, Zhejiang University

Reply via email to