Base64 Checksum

Hi, is this function available ?

Regards,
Stefan

Can you please explain what exactly you mean or want to do.

Thanks, works ! Jan your Crypto Node is good.

Last Thing,

how i can send via Http Post a Base64 Code Pdf ?
Expression in Body:
grafik



Thanks you,
Stefan

Great to hear but the crypto node got written by @RicardoE105 and not myself. So kudos to him!

That question is sadly impossible to answer in a general way, as it depends how the endpoint expects it. But this is one way assuming it expects the data as a JSON (assuming now because of your screenshot above).

{
  "nodes": [
    {
      "parameters": {
        "requestMethod": "POST",
        "url": "https://webhook.site/9f1fa532-2645-4766-a841-9c28e629df57",
        "responseFormat": "string",
        "jsonParameters": true,
        "options": {
          "bodyContentType": "raw",
          "bodyContentCustomMimeType": "application/json"
        },
        "bodyParametersJson": "={\n\tsomethingElse: \"test\",\n\tdata: {{$node[\"Function\"].json[\"data\"]}}\n}"
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        950,
        400
      ]
    },
    {
      "parameters": {
        "url": "https://images.sftcdn.net/images/t_app-cover-l,f_auto/p/ce2ece60-9b32-11e6-95ab-00163ed833e7/260663710/the-test-fun-for-friends-screenshot.jpg",
        "responseFormat": "file",
        "options": {}
      },
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        550,
        400
      ]
    },
    {
      "parameters": {
        "functionCode": "return [\n  {\n    json: {\n      data: items[0].binary.data.data,\n    }\n  }\n]"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        750,
        400
      ]
    }
  ],
  "connections": {
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "Function",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Function": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
1 Like

Jan, thanks i test it tomorrow.