Does Apache Commons File Upload package provides a generic interface to stream parse multipart/form-data
chunks via InputStream
, appending Array<Byte>
, or via any other generic streaming interface?
I know they have a streaming API but the example only shows you how to do that via ServletFileUpload
, which I reckon must be specific to Servlet
.
If not, are there any other alternative frameworks in JVM that lets you do exactly this? Sadly, the framework that I am using, Spray.io, doesn't seem to provide a way to do this.
bayou.io has a generic MultipartParser
You might need some adapters to work with it, since it has its own Async and ByteSource interfaces.
The following example shows how to use the parser synchronously with
InputStream