Play-ws upload pdf

I need to upload single pdf file from file system to web server.

I reading it the following way
(don’t kill me for Await.result this is just POC -:) ):

 val logFile = Paths.get("/Users/dannylesnik/Desktop/1.pdf")

  val source = FileIO.fromPath(logFile)

 val wsClient: StandaloneAhcWSClient = StandaloneAhcWSClient()

  val flow: Flow[ByteString, String, NotUsed] =
    Flow[ByteString].via(Framing.delimiter(ByteString("\n"), maximumFrameLength = 1000000000, allowTruncation = true))
      .map(_.utf8String)

  val body= Await.result( source.via(flow).toMat(Sink.seq)(Keep.right).run().map(_.mkString("\n")),Duration.apply(5L,TimeUnit.SECONDS))

and then send it to server as POST request:

ws.url(tritUrl).withHttpHeaders(headers.toSeq: _*).withRequestFilter(AhcCurlRequestLogger()).post(ByteString(flowEntity.tritInputFile.get)).map(f=>f.body)

This request fails.
When I look at curl console output i see the following:

 p.a.libs.ws.ahc.AhcCurlRequestLogger - curl \
  --verbose \
  --request POST \
  --header 'Content-Type: application/pdf' \
  --header 'Content-Length: 4686' \
  --header 'x-calais-profile: allmetadata' \
  --header 'x-calais-language: English' \
  --header 'x-calais-licenseid: XXX-XXX-XXX' \
  --header 'disablemetadatatype: ComponentVersion' \
  --header 'x-calais-collection: news' \
  --header 'x-calais-contentClass: research' \
  --header 'x-calais-selectivetags: company,person,industry,country,topic,deal' \
%����
stream
BT
/F0 10 Tf
1 0 0 1 50 740 Tm
10 TL
(04:27am EST  8-Mar-05 Bear Stearns \(Bell,N./Bell,N./\) ITV.L ITV/ )Tj
/F0 10 Tf
1 0 0 1 50 730 Tm
(ITV.L: Latest Data Points and 2004 Results Preview ... PART 2)Tj
/F0 10 Tf
1 0 0 1 50 720 Tm
/F0 10 Tf
1 0 0 1 50 710 Tm
(\r)Tj
/F0 10 Tf
1 0 0 1 50 700 Tm
(This report may discuss numerous securities, some of which may not be qualified\r)Tj
/F0 10 Tf
1 0 0 1 50 690 Tm
(for sale in certain states and may therefore not be offered to investors in\r)Tj
/F0 10 Tf
1 0 0 1 50 680 Tm
(such states.  This document should not be construed as providing investment\r)Tj
/F0 10 Tf
1 0 0 1 50 670 Tm
...............

However if I upload the same file from ARC client the request succeeds and source request looks like this:

POST /tag/rs/enrich HTTP/1.1
HOST: dd-hdc-bla-bla.com
content-type: application/pdf
x-calais-licenseid: XXX-XXX-XXX
x-calais-profile: allmetadata
x-calais-collection: news
x-calais-contentclass: research
x-calais-language: English
x-calais-selectivetags: company,person,industry,country,topic,deal
disablemetadatatype: ComponentVersion
content-length: 4686

%PDF-1.4
%����
1 0 obj
<</Count 1/Kids [4 0 R]/Type /Pages>>
endobj
2 0 obj
<</Pages 1 0 R/Type /Catalog>>
endobj
3 0 obj
<</Author (TFR)/CreationDate (D:20050308043000)/PageMode (UseNone)/Producer (PDFlib 3.03 \(Perl 5.6.0/SunOS 5.6\))/Title (PDF Conversion)/Version (1.2)>>
endobj
4 0 obj
<</Contents [5 0 R]/MediaBox [0 0 612 792]/Parent 1 0 R/Resources 8 0 R/Thumb 10 0 R/Type /Page>>
endobj
5 0 obj
<</Length 6 0 R>>
stream
BT
/F0 10 Tf
1 0 0 1 50 740 Tm
10 TL
(04:27am EST  8-Mar-05 Bear Stearns \(Bell,N./Bell,N./\) ITV.L ITV/ )Tj
/F0 10 Tf
1 0 0 1 50 730 Tm
(ITV.L: Latest Data Points and 2004 Results Preview ... PART 2)Tj
/F0 10 Tf
1 0 0 1 50 720 Tm
/F0 10 Tf
1 0 0 1 50 710 Tm
(\r)Tj
/F0 10 Tf
1 0 0 1 50 700 Tm
(This report may discuss numerous securities, some of which may not be qualified\r)Tj
/F0 10 Tf
1 0 0 1 50 690 Tm
(for sale in certain states and may therefore not be offered to investors in\r)Tj
/F0 10 Tf
1 0 0 1 50 680 Tm
(such states.  This document should not be construed as providing investment\r)Tj
/F0 10 Tf
1 0 0 1 50 670 Tm
(services.  Investing in non-U.S. securities including ADRs involves significant\r)Tj
/F0 10 Tf
1 0 0 1 50 660 Tm
(risks such as fluctuation of exchange rates that may have adverse effects on\r)Tj
/F0 10 Tf
1 0 0 1 50 650 Tm
(the value or price of income derived from the security. Securities of some\r)Tj
/F0 10 Tf
1 0 0 1 50 640 Tm
(foreign companies may be less liquid and prices more volatile than securities\r)Tj
/F0 10 Tf

I understand that my problem is the way I handle binary pdf file body, but I can’t find correct example how to do it.
Can you please help?