This is my flow get image from folder;
i call link https://il04.md:8080/test.jpg
And it's successful.
[
{
"id": "c7e341a0.381cc",
"type": "http in",
"z": "6fb9d512500305b6",
"name": "",
"url": "/:img",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 220,
"y": 400,
"wires": [
[
"cb8cf7f69fda838c"
]
]
},
{
"id": "2fb1c354.d04e3c",
"type": "file in",
"z": "6fb9d512500305b6",
"name": "",
"filename": "",
"format": "",
"allProps": false,
"x": 740,
"y": 400,
"wires": [
[
"c9e28681.361d78"
]
]
},
{
"id": "c9e28681.361d78",
"type": "change",
"z": "6fb9d512500305b6",
"name": "Set Headers",
"rules": [
{
"t": "set",
"p": "headers",
"pt": "msg",
"to": "{}",
"tot": "json"
},
{
"t": "set",
"p": "headers.content-type",
"pt": "msg",
"to": "image/png",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 400,
"wires": [
[
"88974243.7768c"
]
]
},
{
"id": "88974243.7768c",
"type": "http response",
"z": "6fb9d512500305b6",
"name": "",
"x": 1250,
"y": 400,
"wires": []
},
{
"id": "cb8cf7f69fda838c",
"type": "function",
"z": "6fb9d512500305b6",
"name": "",
"func": "// msg.image = msg.req.parms.img;\nif(msg.req.params.img != null){\n msg.filename=`C:\\\\Users\\\\dumitru.maros\\\\.node-red\\\\publics\\\\`+msg.req.params.img;\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 440,
"y": 400,
"wires": [
[
"2fb1c354.d04e3c"
]
]
}
]
maybe it's important to you set the header.

