http://leandroascierto.com/blog/explorador-remoto-proyecto-en-marcha/| Client | Server | |
| Get info A.jpg | Ask for A.jpg | |
| A.jpg|2000 | Says that A.jpg size is 2000 bytes | |
| Get A.jpg|0|1024 | Gets first 1024 bytes from A.jpg | |
| A.jpg|(md5) | Starts the transfer, and gives the bytes send should have that md5 | |
| (close conection at byte 22) | ||
| Get A.jpg|22|1024 | Get bytes from A.jpg from 22 to 1024 | |
| A.jpg|(md5) | Starts the transfer, and gives the bytes send should have that md5 |
Open <Filename> for Binary as #1
Put#1,,Byte
Close #1Open <Filename> for Binary as #1
Get#1,,Byte
Close #1You need the Seek sentence, I cant google it rigth now, but thats the key
Open <Filename> for Binary as #1
Seek#1,10
Get#1,,Byte()
Close #1
Private Sub Command1_Click()
Dim BB(10) As Byte
Open "D:\calc.exe" For Binary As #1
Seek #1, 1
Get #1, , BB
Close #1
Dim i As Integer
Dim S As String
For i = 0 To UBound(BB)
S = S & " " & IIf(Len(Hex(BB(i))) = 1, "0" & Hex(BB(i)), Hex(BB(i)))
Next i
MsgBox S
End Sub
http://www.2shared.com/file/NoK9AYxM/FileTransfer_VGood_.html