Skip to main content
February 21, 2023
Question

Upload an octet format file

  • February 21, 2023
  • 3 replies
  • 0 views

Hi Team,

We have a requirement where the client tool can only upload files which are in octet format. We have exposed a web api using "upload document" template of web-api which helps client team to upload files from their systems to our Appian environment. 

Can someone help me with the code required for uploading a file in octet format from external system to our appian environment using a web api.

We use appian version 22.2

Thank you

    3 replies

    stefanhelzle0001
    February 21, 2023

    I do not know about octet formatted files. Can you help me on this? What is special about these?

    February 21, 2023

    Hi Stefan,
    This is what our client had sent us : 
    --Boundary_1_1117453910_1675267454435
    Content-Transfer-Encoding: binary
    Content-Type: application/octet-stream
    Content-Disposition: form-data; filename="Testing1.txt"; name="attach-Attachment"


    This is something their system converts the files into while uploading to Appian.

    abhayd3663
    February 21, 2023

    For sending document over HTTP, Appian supports "Document" and "Multipart Form Data" content types and it uses binary-stream to send the documents. Not sure Appian supports the octet-stream.