send images to server (HTTP, localhost) via maxurl

    Apr 17 2021 | 1:43 pm
    Hi all,
    I set up a motion detection system in Max that takes a snapshot when new movement is detected. This picture is saved to the local computer. I want to send the picture to a local server via maxurl, but I can't get it to work.
    Is anyone familiar with sending images over HTTP in Max? Is there another solution via node.js and websocket? My abilities to programm in node are very bad though.
    Here the patch with motion detection and saving picture. That all works like I wish. It's the maxurl stuff I'm having problems with.
    Link to post on the Facebook forum.
    Best, Eveline

    • Apr 17 2021 | 8:39 pm
    • Oct 02 2021 | 12:18 pm
      is it possible to upload picture via maxurl? also don't understand how to handle base64 format in max...
    • Oct 03 2021 | 9:27 am
      I didn't get it to work the way I wanted to. In the end, I used the objects [] and [] to send images from one computer to another. I don't know if this applies to your project, Wei.
    • Oct 03 2021 | 10:30 am
      Hi Eveline
      It doesn't really help, but thanks anyway! I just couldn't find anyway to convert image into base64 string in max and i don't know any other tool to do so, so that's why I am looking for solution inside max. Guess it doesn't make so much sense to do it in max. I am trying to send over my image to a 3rd party app:
    • Oct 03 2021 | 3:16 pm
      I see. I have no clue about this, and there doesn't seem to be any documentation about converting images to base64 in Max. I hope someone else can help you out!
    • Oct 03 2021 | 3:28 pm
      On Mac it is allready available using opensssl, base64, python3, perl ... need more ? here shell output
      or file : openssl base64 -in path-to-file.jpg -out path-to-file.b64 On windows, one would have to make some installations, I guess. Don't ask me more about it. You know how to use google
    • Oct 03 2021 | 4:37 pm
      Thank you! Eveline you so nice! I hope you will get what you want too :)
      @Sourceaudio thanks too! will try it out!