Re: JOGI - Document Upload

Adam Tauno Williams <[email protected]> Sat, 06 May 2006 12:14:35 -0400
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <4663-SnapperMsg05076A73C0827BF4@[70.217.183.234]>

...... Original Message .......
On Sat, 06 May 2006 17:46:33 +0200 "Derya" <[email protected]> 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?
-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc