Back to Collection Items
        var
http: TChilkatHttp;
success: Integer;
bdRequestBody: TChilkatBinData;
resp: TChilkatHttpResponse;
begin
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
http := TChilkatHttp.Create(Self);
bdRequestBody := TChilkatBinData.Create(Self);
success := bdRequestBody.LoadFile('file');
if (success <> 1) then
  begin
    Memo1.Lines.Add('Failed to load file');
    Exit;
  end;
http.SetRequestHeader('Authorization','{{partner_resource_authorization_header}}');
resp := TChilkatHttpResponse.Create(Self);
success := http.HttpBd('PUT','https://domain.com/',bdRequestBody.ControlInterface,'{{partner_resource_mimeType}}',resp.ControlInterface);
if (success = 0) then
  begin
    Memo1.Lines.Add(http.LastErrorText);
    Exit;
  end;
Memo1.Lines.Add(IntToStr(resp.StatusCode));
Memo1.Lines.Add(resp.BodyStr);
        Curl Command
        curl -X PUT
	-H "Authorization: {{partner_resource_authorization_header}}"
	-H "Content-Type: {{partner_resource_mimeType}}"
	--data-binary '@file'
https://domain.com/
        Postman Collection Item JSON
        {
  "name": "Stream Resource",
  "_postman_id": "94addbd1-0de1-43f5-b53e-2dc7306e407e",
  "request": {
    "method": "PUT",
    "header": [
      {
        "key": "Authorization",
        "value": "{{partner_resource_authorization_header}}",
        "type": "text"
      },
      {
        "key": "Content-Type",
        "value": "{{partner_resource_mimeType}}",
        "type": "text"
      }
    ],
    "body": {
      "mode": "file",
      "file": {
        "src": ""
      }
    },
    "url": "{{partner_resource_location}}"
  },
  "response": [
  ]
}