• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
November 21, 2024, 10:50:31 am

News:

SMF - Just Installed!


How to send binary file?

Started by siliconin, September 15, 2011, 10:29:27 am

Previous topic - Next topic

siliconin

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

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

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

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

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