[OGo-XML-RPC] JOGI - Document Upload

Derya xmlrpc@opengroupware.org
Sat, 06 May 2006 17:46:33 +0200


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!!!!

Bye Derya