Re: [akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-17 Thread Narayan Kumar
Thanks Rafal and Viktor Klang for quick reply :) On Monday, October 17, 2016 at 3:33:41 PM UTC+5:30, johannes...@lightbend.com wrote: > > Thanks Rafał for these explanations. Just a small correction: > > On Tuesday, October 11, 2016 at 3:58:09 PM UTC+2, Rafał Krzewski wrote: >> >> An

Re: [akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-17 Thread johannes . rudolph
Thanks Rafał for these explanations. Just a small correction: On Tuesday, October 11, 2016 at 3:58:09 PM UTC+2, Rafał Krzewski wrote: > > An alternative solution would be looking up websocket buffering settings > and jacking it up enough to receive all messages as Strict :) > Unfortunately, no,

Re: [akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-12 Thread Narayan Kumar
thanks Rafal for reply :) Thanks & Regards | Narayan Kumar Software Consultant *Knoldus Software LLP* Twitter | LinkedIn +91-8510013849 On Tue, Oct 11, 2016 at 9:48 PM, Viktor Klang

Re: [akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-11 Thread Viktor Klang
You're most welcome! :) On Tue, Oct 11, 2016 at 5:52 PM, Rafał Krzewski wrote: > Right, thanks :) > > -- > >> Read the docs: http://akka.io/docs/ > >> Check the FAQ: http://doc.akka.io/docs/akka/ > current/additional/faq.html > >>

Re: [akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-11 Thread Rafał Krzewski
Right, thanks :) -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you

Re: [akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-11 Thread Viktor Klang
Use: Future.successful(text) iso `Future(text)` (no need to evaluate it asynchronously) On Tue, Oct 11, 2016 at 3:58 PM, Rafał Krzewski wrote: > In my particular application the messages I'm receiving a few kB in size. > Sometimes they arrive as Strict and sometimes as

Re: [akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-11 Thread Rafał Krzewski
In my particular application the messages I'm receiving a few kB in size. Sometimes they arrive as Strict and sometimes as Streaming, but they are small enough to be collected and processed as a single chunk. Here's a pipeline stage I'm using to handle both cases in an uniform way:

Re: [akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-10 Thread Narayan Kumar
thanks for quick reply rafal . Yes you hav mentioned right , I am getting the 'message does no arrive' , but not any exception . I have tried with the TextMessage.Streamed , but no progress from here also . Please find the code below : - case TextMessage.Streamed(stream) => { stream

Re: [akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-10 Thread Rafał Krzewski
Please elaborate on "unable to handle it" -- are you getting an exception, message does no arrive, something other? Also it would be helpful if you showed your code for TextMessage.Streamed case because that's how large messages would show up. I don't know the specifics but there appears to be

Re: [akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-10 Thread Narayan Kumar
On Friday, October 7, 2016 at 7:52:03 PM UTC+5:30, √ wrote: > > Why are you assuming that it is a Strict message? > > On Fri, Oct 7, 2016 at 2:11 PM, Narayan Kumar > wrote: > >> Hi everyone, >> Actually i was trying to handle a Web Socket message for base64 encoded >>

[akka-user] How to handle web socket message to upload base64 encoded string of 10mb file

2016-10-07 Thread Narayan Kumar
Hi everyone, Actually i was trying to handle a Web Socket message for base64 encoded string of 10mb file.but unable to handle it. is there any way to handle large message please suggest ? Here is the code: def mediaUploadHandler: Flow[Message, Message, _] = { val (accountSource,