Hi,

I have to implement a legacy file upload service for a customer. Files
of up to some hundred megabytes are uploaded to a service over HTTP POST
and a unique ID is returned which can be used to refer to that file, add
metadata to it etc.

Using Blobs is not viable as parsing of the base64 encoded binary data
and the allocation of multiple strings during request processing
increases both the time and space requirements.

Ideally, I would be able to create an action on one of my domain
services which has a HttpServletRequest argument and take care of
reading the binary data and writing them to the file system.

I have played around with the request processing part of the
restfulobjects viewer/server and managed to get the request/response
objects through.

I know that this is a real edge case, but I think that it is important
to have solutions for edge cases, too, if Isis is to be used as a
general purpose platform.

Could some committers please review the changes and maybe propose a
cleaner way of implementing this?

https://github.com/m-creations/isis/commit/aa3b16a5cf463466f5abadbcc8cc73f16857a628

Thanks


Kambiz

Reply via email to