[OGo-XML-RPC] JOGI - Document Upload

Adam Tauno Williams xmlrpc@opengroupware.org
Fri, 05 May 2006 11:42:00 -0400


--=-tNZYBGozkayr1vtt9SdS
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

> > i have a question regarding the JOGI API!
> > I want to upload files...
> > I know there is a method to create a new Document in Project with
> > public boolean *newDocument*(java.lang.String path,
> >                           java.lang.String content,
> >                           Attribute attr)
> > but how can i upload a Document which exists in a filesystem?
> > For example a jpg Picture??
> Have you tried reading the file into a string and using that as the
> parameter?  You may need to base64 encode the string.

There might be some related information here -
http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=3D689

I've not used most of the project.* methods extensively so I'm not sure.

--=-tNZYBGozkayr1vtt9SdS
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBEW3JILRePpNle04MRAvGpAJ9fbNBXZABsSuFPfAxz2bg4/OUOEwCfRSqW
M1RwgwwnyFvxGjItG5GtJls=
=EC6Z
-----END PGP SIGNATURE-----

--=-tNZYBGozkayr1vtt9SdS--