Specific file format creation

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hi,

I have a NNTP client application. How is it possible to convert character that I received within a "Content-Type:" into the specific file format specified in the content type?
I tried to copy and paste the data I received, but it obviously did not work :-)

Thanks
Mike
 
Mike,

It depends on what the character data is? Since the NNTP protocol
doesn't have a provision for transmitting binary information, so it has to
be converted into text. You have to take that text and convert it back into
bytes, which will then be in the correct content type.

Most likely, it is base64 encoded or uuencoded.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Hi,

I have a NNTP client application. How is it possible to convert character
that I received within a "Content-Type:" into the specific file format
specified in the content type?
I tried to copy and paste the data I received, but it obviously did not work
:-)

Thanks
Mike
 
It hoped to resolve the issue. Thanks a lot!

Mike


Mike,

It depends on what the character data is? Since the NNTP protocol
doesn't have a provision for transmitting binary information, so it has to
be converted into text. You have to take that text and convert it back into
bytes, which will then be in the correct content type.

Most likely, it is base64 encoded or uuencoded.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Hi,

I have a NNTP client application. How is it possible to convert character
that I received within a "Content-Type:" into the specific file format
specified in the content type?
I tried to copy and paste the data I received, but it obviously did not work
:-)

Thanks
Mike
 
Back
Top