[OGo-XML-RPC] JOGI - Document Upload

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


--=-H915GutIiuKUoLCgFura
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.

--=-H915GutIiuKUoLCgFura
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)

iD8DBQBEW2+xLRePpNle04MRAo07AJ97nfgn0RMXnLFR6ediLSd8RV+EAACfQhHl
1KeeSln6+eO+itqBtJ8kXag=
=524H
-----END PGP SIGNATURE-----

--=-H915GutIiuKUoLCgFura--