I'm working on a project where I need to send images from an ESP32-CAM to Node-Red via MQTT. As the image can be very heavy, I chose to split the string (Base64) into chunks and reassemble it in Node-Red. To reassemble I'm trying to use the Join node, it works, but it adds each chunk as a new line, breaking the final payload result. Is there any way to concatenate strings without adding new lines?
My flow:
[{"id":"aaa2f6a8.167508","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"ae2e7a65.89c638","type":"mqtt in","z":"aaa2f6a8.167508","name":"","topic":"PICTURE","qos":"2","datatype":"auto","broker":"fb44c7e.d7ff038","x":360,"y":260,"wires":[["13fbc609.551cca","6e7f02b7.8d7f8c"]]},{"id":"313660dc.b0e4e","type":"image","z":"aaa2f6a8.167508","name":"","width":"200","data":"payload","dataType":"msg","thumbnail":false,"active":true,"pass":true,"outputs":1,"x":720,"y":280,"wires":[[]]},{"id":"26f92174.9bef6e","type":"debug","z":"aaa2f6a8.167508","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":690,"y":340,"wires":[]},{"id":"13fbc609.551cca","type":"debug","z":"aaa2f6a8.167508","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":370,"y":360,"wires":[]},{"id":"6e7f02b7.8d7f8c","type":"join","z":"aaa2f6a8.167508","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":"","joinerType":"str","accumulate":false,"timeout":"5","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":530,"y":260,"wires":[["810b0ec.20845f","313660dc.b0e4e","26f92174.9bef6e"]]},{"id":"810b0ec.20845f","type":"mqtt out","z":"aaa2f6a8.167508","name":"","topic":"RETURN","qos":"","retain":"","broker":"fb44c7e.d7ff038","x":700,"y":220,"wires":[]},{"id":"fb44c7e.d7ff038","type":"mqtt-broker","z":"","name":"ESP32CAM_MQTT_01","broker":"192.168.0.102","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"5","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]