[akka-user] Handling boundary data in chunked requests

2015-01-20 Thread Yogesh Pandit
​ Hello, I am using spray-can 1.2.1 and have a service to upload data in chunks. It seems to be working fine but for the following boundary data being written to the uploaded file. How can I not write this into the file. Reading the whole file is not an option due to large size. I have used the

Re: [akka-user] Handling boundary data in chunked requests

2015-01-22 Thread Roland Kuhn
If I understand correctly then you’ll want to use akka-http which has support for handling multipart/formdata. This has the downside that akka-http is still being developed, but you can try out milestone 1.0-M2 to see if that works for you. Regards, Roland > 21 jan 2015 kl. 01:52 skrev Yogesh

Re: [akka-user] Handling boundary data in chunked requests

2015-01-22 Thread Yogesh
Not sure if I can use akka-http, but will definitely take a look. Thank you. I basically need to strip those few "header" and "boundary" lines from my content. Is there some way I can do it with spray? On Thu, Jan 22, 2015 at 4:10 AM, Roland Kuhn wrote: > If I understand correctly then you’ll w

Re: [akka-user] Handling boundary data in chunked requests

2015-01-22 Thread Roland Kuhn
AFAICS that would have nothing to do with spray itself: you get some ByteStrings and you want to remove some parts of them. What you need is an implementation of RFC 2388 , and akka-http includes one out of the box while spray does not. Regards, Roland >