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 <https://www.ietf.org/rfc/rfc2388.txt>, and 
akka-http includes one out of the box while spray does not.

Regards,

Roland

> 22 jan 2015 kl. 22:15 skrev Yogesh <yogesh...@gmail.com>:
> 
> 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 <goo...@rkuhn.info 
> <mailto:goo...@rkuhn.info>> wrote:
> 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 Pandit <yogesh...@gmail.com 
>> <mailto:yogesh...@gmail.com>>:
>> 
>> ​
>> 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 following example - 
>> https://github.com/spray/spray/tree/master/examples/spray-can/simple-http-server/src/main/scala/spray/examples
>>  
>> <https://github.com/spray/spray/tree/master/examples/spray-can/simple-http-server/src/main/scala/spray/examples>
>> 
>> 
>> ------WebKitFormBoundary5mkhOpb3GjmIWL7a
>> Content-Disposition: form-data; name="datafile"; filename="file.csv"
>> Content-Type: text/csv
>> 
>> ....<real-data>
>> 
>> ------WebKitFormBoundary5mkhOpb3GjmIWL7a--
>> 
>> Thanks you,
>> -Yogesh
>> 
>> -- 
>> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
>> >>>>>>>>>> Check the FAQ: 
>> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
>> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
>> >>>>>>>>>> <https://groups.google.com/group/akka-user>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to akka-user+unsubscr...@googlegroups.com 
>> <mailto:akka-user+unsubscr...@googlegroups.com>.
>> To post to this group, send email to akka-user@googlegroups.com 
>> <mailto:akka-user@googlegroups.com>.
>> Visit this group at http://groups.google.com/group/akka-user 
>> <http://groups.google.com/group/akka-user>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> 
> Dr. Roland Kuhn
> Akka Tech Lead
> Typesafe <http://typesafe.com/> – Reactive apps on the JVM.
> twitter: @rolandkuhn
>  <http://twitter.com/#!/rolandkuhn>
> 
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <https://groups.google.com/group/akka-user>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to akka-user+unsubscr...@googlegroups.com 
> <mailto:akka-user+unsubscr...@googlegroups.com>.
> To post to this group, send email to akka-user@googlegroups.com 
> <mailto:akka-user@googlegroups.com>.
> Visit this group at http://groups.google.com/group/akka-user 
> <http://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <https://groups.google.com/group/akka-user>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to akka-user+unsubscr...@googlegroups.com 
> <mailto:akka-user+unsubscr...@googlegroups.com>.
> To post to this group, send email to akka-user@googlegroups.com 
> <mailto:akka-user@googlegroups.com>.
> Visit this group at http://groups.google.com/group/akka-user 
> <http://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe <http://typesafe.com/> – Reactive apps on the JVM.
twitter: @rolandkuhn
 <http://twitter.com/#!/rolandkuhn>

-- 
>>>>>>>>>>      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 are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to