Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7DR#1
-
Fix Version/s: 1.8.2-EE-GA_P01, 1.8.3
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
-
ICEsoft Forum Reference:
Description
Users would prefer to have access to a stream for saving the uploaded file directly into a database, instead of to the filesystem.
The way that the commons upload code works, is that we receive the file in chunks, and probably wouldn't want to expose those intricacies to the application layer. So if the application could provide the ice:inputFile component an OutputStream with which to write to, then that would be the simplest approach.
The way that the commons upload code works, is that we receive the file in chunks, and probably wouldn't want to expose those intricacies to the application layer. So if the application could provide the ice:inputFile component an OutputStream with which to write to, then that would be the simplest approach.
It's the same ice:inputFile component, it just has a new "outputStream" property, which you can use to create a ValueBinding to your bean where your getter method will return a java.io.OutputStream object. In your actionListener method you would still do the same logic of seeing if the file upload was a success or failure, to then handle the data that was written to your OutputStream.