Return-Path: Delivered-To: apmail-incubator-abdera-user-archive@locus.apache.org Received: (qmail 20653 invoked from network); 24 Oct 2007 04:33:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2007 04:33:57 -0000 Received: (qmail 18032 invoked by uid 500); 24 Oct 2007 04:33:44 -0000 Delivered-To: apmail-incubator-abdera-user-archive@incubator.apache.org Received: (qmail 18014 invoked by uid 500); 24 Oct 2007 04:33:44 -0000 Mailing-List: contact abdera-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-user@incubator.apache.org Delivered-To: mailing list abdera-user@incubator.apache.org Received: (qmail 18003 invoked by uid 99); 24 Oct 2007 04:33:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 21:33:44 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 04:33:48 +0000 Received: by nf-out-0910.google.com with SMTP id k4so69641nfd for ; Tue, 23 Oct 2007 21:33:26 -0700 (PDT) Received: by 10.78.122.16 with SMTP id u16mr58762huc.1193200405884; Tue, 23 Oct 2007 21:33:25 -0700 (PDT) Received: by 10.78.186.6 with HTTP; Tue, 23 Oct 2007 21:33:25 -0700 (PDT) Message-ID: <7c8978aa0710232133s28334576wfaf2cfe69c8ebd6c@mail.gmail.com> Date: Tue, 23 Oct 2007 21:33:25 -0700 From: "Woody Anderson" To: abdera-user@incubator.apache.org Subject: having trouble doing posting an image using AbderaClient.post MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4800_5068267.1193200405879" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_4800_5068267.1193200405879 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 1st, I am probably missing something really obvious here, but i'll be verbose in case i'm not. I'm working on some code based on the provided postToBlogger() example. i'm looking to post some number of images etc. get the blog based uri for them, create an actual blog entry and post that. i have been able to post a text entry to the example blog (after some issues with GoogleLoginAuthScheme...) i had to add this line into the mix (with code from the example) client = new AbderaClient(ABDERA); GoogleLoginAuthScheme.register( client, true ); // this was missing i think Anyway, that worked. so for images i tried (btw, this is the very first thing i do with the client after i create it and add creds etc.): Entry entry = FACTORY.newEntry(); entry.setUpdated( new Date() ); entry.setTitle( title ); entry.setContent( new FileInputStream( "..." ), "image/jpg" ); return client.post( getUri(), entry, options ); got this: response = 415 : Unsupported Media Type i found some rather older looking code on the ibm site: http://www.ibm.com/developerworks/xml/library/x-atommedia/index.html so i tried something like: options.setContentType("image/jpg"); return client.post( getUri(), new FileInputStream( "..." ), options ); i got the same response (at least relative to status code) i'm hoping there is a really simple way to be posting images using Abdera, could someone give me some assistance on that? thanks a lot. -w ------=_Part_4800_5068267.1193200405879--