Application Integration
- Application Integration
- All Products
sff:getAttachmentSize($input.photo)
sff:createAttachmentFromBase64("base64", "UOpGUIRA", "ascii")
POST /active-bpel/public/rt/Attachments_Test HTTP/1.1 Content-Type: multipart/form-data; boundary=----TheBoundary1234 ------TheBoundary1234 Content-Disposition: form-data; name="first" John ------TheBoundary1234 Content-Disposition: form-data; name="last" Smith ------TheBoundary1234 Content-Disposition: form-data; name="inputFile"; filename="filename.png" Content-Type: image/png ... binary image data ... ------TheBoundary1234--
Content-Type: multipart/mixed; boundary=----TheBoundary1234 ------TheBoundary1234 Content-Type: application/json { "first" : "John", "last" : "Smith", "inputFile" : "cid:fc1c6030-4b90-4981-b9d8-ab1d0ba0e84e" } ------TheBoundary1234 Content-Type: image/png Content-Name: photo Attachment-Created-At:1435182142837 Content-Id: fc1c6030-4b90-4981-b9d8-ab1d0ba0e84e Content-Length: 1073 ... binary image data ... ------TheBoundary1234--
--Boundary content-type: ... cid:outputFile --Boundary content-type: image/jpeg [binary data]
HTTP/1.1 200 OK Content-Type: image/jpeg Content-Length: length [.. JPEG data ...]