this is the upload of an illustration :
Request request = ObjectModelHelper.getRequest(objectModel); Enumeration e = request.getParameterNames();
while (e.hasMoreElements()) { String param = (String) e.nextElement(); Object value = request.get(param);
//get the name of the document String fileName = null; if (value instanceof FilePart) { fileName = ((FilePart) value).getFileName(); }
//get the content from the post if (value instanceof FilePartArray) { FilePartArray fpa = (FilePartArray) value; InputStream is = fpa.getInputStream(); int size = is.available(); byte[] b = new byte[size]; try { is.read(b); } finally { is.close(); }
....
Lionel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]