Author Topic: How to send binary file?  (Read 985 times)

siliconin

  • Newbie
  • *
  • Posts: 8
    • View Profile
How to send binary file?
« on: September 15, 2011, 01:29:27 pm »
Hello
how to send binary file i have tried nrcomm1.sendstring its working like a charm but i need to send external bin file please let me know the procedure i am attaching file need to be sended



Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: How to send binary file?
« Reply #1 on: September 15, 2011, 05:40:36 pm »
Hello

You need use the special file transfer protocols like Kermit or ZModem.
You can take a look at Kermit demo project.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

siliconin

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: How to send binary file?
« Reply #2 on: October 05, 2011, 09:29:47 am »
hello,
i have readed out kermit demo but cant understand can u make an example of file i have uploded in last post will b more easier one more thing what max length of file i can send
thanx

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: How to send binary file?
« Reply #3 on: October 05, 2011, 09:42:21 am »
Hello

I don't understand you.

Kermit Demo can send any file with any length.
It uses Kermit file transfer protocol and provides data integrity checking during transmission.
If you do not want to use Kermit, you can open file stream and send file byte-to-byte over TnrComm.SendData() method in loop.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

siliconin

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: How to send binary file?
« Reply #4 on: October 05, 2011, 10:13:40 am »
hello,
i know that but i am little bit confuse thats why i am asking for example if possible pls give example with given binary file it would be helpful to understand

wbr