Re: Converting byte[] to string

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 10/22/04


Date: Fri, 22 Oct 2004 09:53:31 +0100

Marius Cabas <marius_cabas@hotmail.com> wrote:
> "Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
> > Are you able to specify the encoding the SSL code will use?
>
> No, I have no control. I can only connect to a remote host using a por
> number and I can set the certificates. Afterwards, I can read and write data
> from/to the socket.

And you can only read/write data from/to the socket in string form?
What a terrible interface.

Basically, you won't be able to transfer binary data correctly unless
you can use something like Base64 encoding at both ends. If you don't
have control over the other end, you're stuffed.

Is there any way you can ditch this library and use a different one? It
sounds awful...

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: Converting byte[] to string
    ... > Are you able to specify the encoding the SSL code will use? ... No, I have no control. ... I can only connect to a remote host using a por ...
    (microsoft.public.dotnet.languages.csharp)
  • Winsock Control and Responding to Error Situations
    ... I have an application that impliments the winsock control in a control array ... So when I close the socket I call a function CloseSocket. ... Public Sub CloseSocket ... Dim strTag As String ...
    (microsoft.public.vb.controls.internet)
  • Re: Receiver Control Panel
    ... if you don't mind doing loads of tight solder ... Desolder the original socket, wire up an appropriate length of cable ... > control micro. ... A major annoyance of older analog pots is ...
    (sci.electronics.repair)
  • Re: Quandry on 3 DSLRs
    ... with all control and options you could want. ... PC Socket - not that I use my old PC flashgun much anyway. ... Of course if it had the aperture sensor like the old ... Use of non A lenses is a bit of an added extra anyway, ...
    (rec.photo.digital.slr-systems)
  • Re: Multithreaded GUI issues
    ... The code is happening in a try/catch handler, but the exception is taking place in a callback thread that I have no control over. ... were actually trying to close a socket at the time the exception occurred, so you might want to check to see why something is trying to close a socket when you don't expect to. ... But how do I know that creating an Image object is thread safe? ...
    (microsoft.public.dotnet.languages.csharp)