After many hours of searching and readings, I found a solution, I do not know if it is the best, but anyhow this is my solution:
By using a service operation called "Find" from a service named "FileUtilsService", this operation will return a list of strings with the names of all files and/or directories under the path you want.
Then by using the "Read Document" I was able to get one file and store it in a dcoumnet variable, and by using a simple looping technique I got all the files I want.
hope this will help others
A while ago I needed the same thing, so I wrote up a bit of java code as a DSC for LiveCycle. I read the directory into a list of documents so it can be used later on.
There is also an operation to read file from a URL and to convert a Document into a byte array.
Source code and workbench deployable DSC jar file are attached.
Please note that this is unofficial and not supported by Adobe in any way.
FileIOPlus component.zip 1.9 MB
Is this component built for ES, or ES2?
Does it matter?
I built it for ES, but I have used it with ES2 and ES2.5 with no problems. Its really just a wrapper on some simple java code.
Thank you Hodmi,
I'll download it, In Sha2 Allah, and test it