Re: JOGI - Document Upload

Adam Tauno Williams <[email protected]> Fri, 05 May 2006 11:42:00 -0400
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <1146843720.8486.22.camel@localhost>
> > 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=689

I've not used most of the project.* methods extensively so I'm not sure.
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

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