Skip to main content
Known Participant
Feb 21, 2023 6:34 AM UTC
Question

Upload an octet format file

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
    Brainy
    Feb 21, 2023 6:58 AM UTC

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

    Known Participant
    Feb 21, 2023 10:03 AM UTC

    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
    Brainy
    Feb 21, 2023 8:36 PM UTC

    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.