[akka-user] Re: Why akka.util.ByteString.indexOf has not the same behavior as String.indexOf ?

2014-06-10 Thread Alain Marcel
Hi ! I admit that indexOf differences in java String and Array is slightly confusing. Akka ByteString.index is like Array.indexOf and not String.indexOf... Choice is difficult with ByeString parameter ... Add a warning ? Add a method that behave as String.indexOf() ? Hope somebody will have

[akka-user] How to download large file with Akka-http V1.0-RC4 ?

2015-07-02 Thread alain marcel
On Windows 7, a Play framework V2.4.1 serves a large file (near 650Mb) on localhost:8080. I can download it from my web browser chrome. When I try to do the same thing with Akka-http based client, I have an error described at the end of this post. If I replace the big file by a small one (5Mb),

[akka-user] Akka-http 1.0-RC4 on android 5.0.1 : that rocks !

2015-07-03 Thread alain marcel
Hi everybody ! Following code is a server realized with akka-http on android that serves files. For this to work, just call new ServerForDownloadFile() in an android AsyncTask. class ServerForDownloadTask extends AsyncTask[AnyRef, Void, AnyRef] { protected def doInBackground(args: AnyRef*):

[akka-user] Re: How to download large file with Akka-http V1.0-RC4 ?

2015-07-20 Thread alain marcel
Hi and thanks for your attention. Now I am using akka-stream 1.0 and scala 2.11.7 with the same results as previously. New trial : on server side, I replace iterator with SynchronousFileSource and I have an exception on client side : IllegalResponseException: Response Content-Length