Home All Groups Group Topic Archive Search About

File converting/sending help

Author
28 Sep 2006 3:19 AM
Bonzol
vb.net 2003 VB

Hey there, I have a program that uses remote connections and it can
send strings to the clients and from clients to server.

Now we need to send files this way, is there anyway to convert files
such as images,, exes,, anything? to a string and send it? then
recomplie it as a file again? or to convert it to binary?

Or does anyone have any other suggestion for sending and recieving
files?
(would preffer to convert to string though)

thanx in advanced

Author
28 Sep 2006 5:24 AM
GhostInAK
Hello Bonzol,

Look up .NET's implementation of Base64 encoding.

-Boo

Show quoteHide quote
> vb.net 2003 VB
>
> Hey there, I have a program that uses remote connections and it can
> send strings to the clients and from clients to server.
>
> Now we need to send files this way, is there anyway to convert files
> such as images,, exes,, anything? to a string and send it? then
> recomplie it as a file again? or to convert it to binary?
>
> Or does anyone have any other suggestion for sending and recieving
> files?
> (would preffer to convert to string though)
> thanx in advanced
>
Author
28 Sep 2006 6:21 AM
Daniel Bloch
Bonzol schrieb:

Show quoteHide quote
> vb.net 2003 VB
>
> Hey there, I have a program that uses remote connections and it can
> send strings to the clients and from clients to server.
>
> Now we need to send files this way, is there anyway to convert files
> such as images,, exes,, anything? to a string and send it? then
> recomplie it as a file again? or to convert it to binary?
>
> Or does anyone have any other suggestion for sending and recieving
> files?
> (would preffer to convert to string though)
>
> thanx in advanced


If you convert to string, you will loose binary information as a string
needs to be decoded (like in ASCII or UNICODE) and will not be able to
hold all the informations of a exe file...

As far as I know, there is no way to send files via remote, you need to
implement something like FTP or MIPS to do this.

Daniel
Author
28 Sep 2006 6:23 AM
Daniel Bloch
Bonzol schrieb:

Show quoteHide quote
> vb.net 2003 VB
>
> Hey there, I have a program that uses remote connections and it can
> send strings to the clients and from clients to server.
>
> Now we need to send files this way, is there anyway to convert files
> such as images,, exes,, anything? to a string and send it? then
> recomplie it as a file again? or to convert it to binary?
>
> Or does anyone have any other suggestion for sending and recieving
> files?
> (would preffer to convert to string though)
>
> thanx in advanced


If you convert to string, you will loose binary information as a string
needs to be decoded (like in ASCII or UNICODE) and will not be able to
hold all the informations of a exe file...

As far as I know, there is no way to send files via remote, you need to
implement something like FTP or MIPS to do this.

Daniel