- 
        1. Re: How do I use rich:fileUploadmeetoblivion Dec 16, 2008 5:53 PM (in response to francof)You need to define a fileUploadListener, and implement the method public void processUpload(UploadEvent arg0). 
 Here's an example implementation that I've been using:public void processUpload(UploadEvent arg0) { // TODO Auto-generated method stub if(arg0.isMultiUpload()){ List<UploadItem> items = arg0.getUploadItems(); for(UploadItem item : items) handleUpload(item); } else { UploadItem item = arg0.getUploadItem(); handleUpload(item); } }
- 
        2. Re: How do I use rich:fileUploadfrancof Dec 16, 2008 7:53 PM (in response to francof)Thank you for your response. 
 Got it, now I just need to pipe to FileInputStream ...
 I use an Oracle db - I am uploading images and I assume I can just as easy write the byte[] array to a blob.
 Franco
- 
        3. Re: How do I use rich:fileUploadmeetoblivion Dec 16, 2008 8:02 PM (in response to francof)The UploadItem class has a getData method that returns a byte[]. No need for file input streams. depending on how you're interacting w/ the oracle db it should be easy (for example, if you're using TopLink or Hibernate you should be able to annotate the field). 
- 
        4. Re: How do I use rich:fileUploadfrancof Jan 8, 2009 1:04 PM (in response to francof)I just wanna thank you for your help. 
 I just got around to doing this yesterday after my winter break.
 I am using Hibernate and using your tips, I was able to get this working with no sweat.
 Regards
 Franco
 
    