Forum Discussion

edavidramos's avatar
Occasional Visitor
5 years ago

File appears to get truncated when Posting/Upload using ReadyAPI


I have an inconvenince that I am trying to resolve.


I am tryin to configure ReadyAPI 3.1.0 to use a specific Rest service with a POST method that is used to Upload files. From the documentation, I assume I configured the API correctly in Ready API. But when I run the commend to upload, the file size does not match and appears to get truncated. This makes the file unusable.


I tried to use the example in the Oracle site to use Postman and that works fine. I can upload the file and it looks good. Oracle said it's Ready API problem so here I am asking you all...


Ready API 3.1.0 configuration for this:


Method: POST

Request Media Type: application/octet-stream

Request Attachments:




HTTP/1.1 200 OK
Date: Wed, 12 Feb 2020 22:48:00 GMT
Server: Oracle-Application-Server
X-EPM_OBJECT: isFirst=true,chunkSize=5000000,isLast=true,File Name=pbcs_delete.csv
X-EPM_ACTION: Upload File
Vary: Accept-Encoding,User-Agent
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/json; charset=UTF-8
Content-Language: en
Strict-Transport-Security: max-age=31536000 ; includeSubDomains



There is an exampl here using Postman and I use that no issue.





3 Replies

  • richie's avatar
    Community Hero
    Hi edavidramos,

    The headers of your request appear to indicate youre using the application/octet-stream Content-Type header.
    This type is typically used for binary files.
    What is the file type of the file you are publishing in your Post request?

    It would help to have a bit more info relative to the content/payload and headers of the request. All you need to do is strip the security detail from it (auth details, servername in URL and anything relevant in your payload), but at first glance id look at the Content-Type of the.request


    • sonya_m's avatar
      SmartBear Alumni (Retired)

      Thank you richie and nmrao!


      edavidramos were you able to solve the issue? Please share if the suggestions helped.