logo       

Re: Base64 encoding project.newDocument?: msg#00019

cms.opengroupware.xmlrpc.devel

Subject: Re: Base64 encoding project.newDocument?

On 18.03.2004, at 18:07, ogoxmlrpc@xxxxxxxx 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
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise