File converting/sending help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bonzol

    #1

    File converting/sending help

    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

  • GhostInAK

    #2
    Re: File converting/sending help

    Hello Bonzol,

    Look up .NET's implementation of Base64 encoding.

    -Boo
    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
    >

    Comment

    • Daniel Bloch

      #3
      Re: File converting/sending help


      Bonzol schrieb:
      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

      Comment

      • Daniel Bloch

        #4
        Re: File converting/sending help


        Bonzol schrieb:
        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

        Comment

        Working...