--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/92bde884-1ea2-4d61-ad3b-e4a70df90502%40googlegroups.com.
There is an example project in Play with a custom body parser that can stream off a file upload that you can use:This is actually available from the Play Framework download page: https://playframework.com/download
On Mon, Jan 16, 2017 at 12:01 PM, <alan...@gmail.com> wrote:
Hi, @Christian Schmitt . Can we use this https://www.playframework.com/documentation/2.5.x/ScalaBodyParsers#directing-the-body-elsewhere to proxy request?
Is that one load all request the memory?
On Sunday, September 4, 2016 at 12:53:05 PM UTC+4, Christian Schmitt wrote:Actually if you are new to play this task is probably too hard for you.What you basically need to do is create your own BodyParser: https://www.playframework.com/documentation/2.5.x/JavaBodyParsers#Writing-a-custom-body-parserThat will actually accumulate the file as a Akka Stream (Source[ByteString, Object]) this one can then directly be feed to the Play WS Library (which is a async http client) to upload the file to openstack swift.
Am Sonntag, 4. September 2016 09:39:47 UTC+2 schrieb Alexandr Porunov:Hello,I have to create a proxy for file uploading but the problem is that I don't have to store an entire file on the proxy server. My proxy have to accept very big files (files with size up to 80 GB) and store an entire file in the object storage (openstack swift). But proxy don't have to keep an entire file in the RAM or on the disk. Proxy have to act like a pipe (connect input stream and output stream).I am new to Play. How to get input stream when a user sends a file? Is it possible to create such a proxy server with Play using Java?Sincerely,Alexandr
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
There is an example project in Play with a custom body parser that can stream off a file upload that you can use:This is actually available from the Play Framework download page: https://playframework.com/download
On Mon, Jan 16, 2017 at 12:01 PM, <alan...@gmail.com> wrote:
Hi, @Christian Schmitt . Can we use this https://www.playframework.com/documentation/2.5.x/ScalaBodyParsers#directing-the-body-elsewhere to proxy request?
Is that one load all request the memory?
On Sunday, September 4, 2016 at 12:53:05 PM UTC+4, Christian Schmitt wrote:Actually if you are new to play this task is probably too hard for you.What you basically need to do is create your own BodyParser: https://www.playframework.com/documentation/2.5.x/JavaBodyParsers#Writing-a-custom-body-parserThat will actually accumulate the file as a Akka Stream (Source[ByteString, Object]) this one can then directly be feed to the Play WS Library (which is a async http client) to upload the file to openstack swift.
Am Sonntag, 4. September 2016 09:39:47 UTC+2 schrieb Alexandr Porunov:Hello,I have to create a proxy for file uploading but the problem is that I don't have to store an entire file on the proxy server. My proxy have to accept very big files (files with size up to 80 GB) and store an entire file in the object storage (openstack swift). But proxy don't have to keep an entire file in the RAM or on the disk. Proxy have to act like a pipe (connect input stream and output stream).I am new to Play. How to get input stream when a user sends a file? Is it possible to create such a proxy server with Play using Java?Sincerely,Alexandr
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.