[OGo-XML-RPC] JOGI - Document Upload
Adam Tauno Williams
xmlrpc@opengroupware.org
Sat, 06 May 2006 12:14:35 -0400
...... Original Message .......
On Sat, 06 May 2006 17:46:33 +0200 "Derya" <docean@gmx.de> wrote:
>Adam Tauno Williams schrieb:
>>> File datei = new File("picture.jpg");
>>> byte[] fby = getBytesFromFile(datei);
>>>
>>> String content = new BASE64Encoder().encode(fby);
>>> project.newDocument("pic.jpg", content, null);
>>> I tried it thatway... but it doesn't work!!!
>>> The File is there but i can't see the picture in OGo!
>>> Maybe somebody know? What i'm doing wrong?
>>>
>>
>> What MIME type does OGo think it is? If you downlad the file via the
>> web-ui is it intact?
>>
>OGo set the picture icon for the file...
>But if i donwload the file via web-ui the file is not intact!
>No Picture!!!!
Is it zero sized or stored as base64?