Exception while retrieving IFileItem content
![]()
Hi,
I'm trying to retrieve the content of a IFileItem with the following code: IVersionable versionable = ... But I obtain the following exception: Exception in thread "main" java.lang.IllegalArgumentException What is the problem? Alternatively, could I retrieve a versioned file directly and save it? Thank you. |
One answer
![]()
I'm not 100% sure on this, but try passing in "fileItem" as opposed to
fileHandle (aka, fileItem.getItemHandle()) into the contentManager call. FileItem extends FileItemHandle. State information might be getting lost in the getItemHandle() call. On Fri, 23 Oct 2009 11:08:01 -0400, kostja79 <daniele> wrote: Hi, -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |