EldoS | Feel safer!

Software components for data protection, secure storage and transfer

File Tranfer VB.NET

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
Posted: 12/27/2007 20:05:02
by Adam Leyshon (Standard support level)
Joined: 05/08/2007
Posts: 23

Hey, im sorry if i'm about to bore people to death with a questions
which has probably been asked >Million Times.

Does anyone have a basic sample of how to transfer files via messages
or do i have the wrong idea?

I was thinking of using the message codes to describe what is being sent e.g.

Code, explanation
1, This is the file name i.e. start of a new file and the MD5 of the total file
2, this is a new block of data (~1MB) and the MD5 of this block is the content of this message
3, this is a data chunk (~8kB) in binary.
4, ask client to confirm block hash
5, this is the end of the file

S -> C: 1,Thisisanewfile.dat#12345678901234567890
C -> S: 1,Data Recieved OK!
S -> C: 2,123456789123912331233
S -> C: 3,Put some binary data here
S -> C: Repeat until new block or EOF
S -> C: 4,Confirm
C -> S: 1,Data Received OK! or 0,Data Failed Resend
S -> C: 5,EOF
C -> C: 1,Data Received OK!

If you think this is a good/bad idea pls let me know thanks.

Regards Adam.
Posted: 12/28/2007 15:00:40
by Nick Tucker (Standard support level)
Joined: 03/13/2007
Posts: 13

I think you will find that one of the examples does file transfers. Modify it to add the Hash values are your done.
Posted: 12/29/2007 05:06:58
by Eugene Mayevski (Team)

As Mr.Tucker pointed, we have a sample that does exactly what you describe. But this demo is available only in Delphi. In general, the delphi sample code can be read as Delphi is to some extent similar to VB.

Sincerely yours
Eugene Mayevski



Topic viewed 6639 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!