Menu

How to send a 40kb file in 256 byte segments

Anonymous
2020-05-18
2020-05-19
  • Anonymous

    Anonymous - 2020-05-18

    Hi, I am trying to send a file (using your sendfile example script). I need to send only 256 bytes and wait for a reply before sending the next 256 byte package. Rinse and repeat until the end of the file. I am an experienced coder but new to ScriptCommander. Thank you for your help in advance!

    Ray

     
  • Stefan Zieker

    Stefan Zieker - 2020-05-19

    Hi Ray,

    you can find a script in the attachment that sends a file in chunks of 256 bytes and waits for the string 'Ready' before sending a new chunk. If the response string is not received within 2 seconds a timeout occurs and the sending fails.

    Regards
    Stefan

     
  • Anonymous

    Anonymous - 2020-05-19

    Hi Stefan,

    Thank you so much!!! Works perfectly. This is an amazing tool. I can't wait to explore all of it's other power.

    Regards,
    Ray

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.