Re: Base64 encoding project.newDocument?

Helge Hess <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
On 18.03.2004, at 18:07, [email protected] wrote:
> I am trying to put files in a project using project.newDocument 
> method. With
> text files it works just fine & straight; anyway since I need to 
> upload .pdf
> files (to integrate OGo with Hylafax) I'm finding a big limitation in 
> the
> absence of a base64 encoding parameter in that method.

Hm, that should be transparent. I guess you are not submitting a 
<base64> object but a <string>? You need to submit an XML-RPC data 
object.

> I saw project.loadDocument supports it; but this means that via 
> xml-rpc I can
> just download binary files, and not upload them.

Well, maybe newDocument() really has a bug, but if I see it right, 
saveDocument() should definitely work.
If it doesn't, and you are *SURE* that you are submitting a XML-RPC 
<base64> tag (eg you can use -WOHttpAdaptor_LogStream YES), make a 
bugreport.

> Are there specific reasons for this absence

I think it should work just fine if you pass in a data object.

> is it possible have some kind of turn-around?

a) use ZideStore PUT/GET: this is much better suited for file stuff 
anyway.
b) create an empty document with newDocument(), then store the real
    content with saveDocument()

Greets,
   Helge
-- 
http://docs.opengroupware.org/Members/helge
OpenGroupware.org

-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.