Have a look at this blog entry I wrote: http://www.bleedyellow.com/blogs/m.leusink/entry/processing_files_uploaded_to_an_xpage?lang=en
It describes how to get a handle on uploaded files using XPages and probably contains enough information to get you started.
Mark