Retrieve a Task Attachment as a Stream
get
/ic/api/process/v1/tasks/{id}/attachments/{attachmentName}/stream
Retrieves an attachment by name as a stream.
NOTE:
Whether a process application uses documents or attachments depends on the application configuration.
- If Oracle Content and Experience(documents) is enabled, the application can only use documents, and API operations on attachments do not apply.
- If Oracle Content and Experience(documents) is not enabled, the application can only use attachments, and API operations on documents do not apply.
To identify whether Oracle Content and Experience(documents) is enabled in a process application, use the API /ic/api/process/v1/processes/{processId} to retrieve process instance details. Oracle Content and Experience(documents) is enabled when the parameter isDoCSEnabled=true.
Request
Path Parameters
Back to Top
Response
200 Response
Displays the file contents. Response type will be based on the mime type of the attachment.
400 Response
Bad Request.
401 Response
Unauthorized
404 Response
No inputstream exists for attachment with given name
500 Response
Internal Server Error