Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
GeneralRe: pop3 encoding problems Pin
leppie7-Aug-08 3:04
leppie7-Aug-08 3:04 
GeneralRe: pop3 encoding problems Pin
GeorgeBerry7-Aug-08 3:26
GeorgeBerry7-Aug-08 3:26 
GeneralRe: pop3 encoding problems Pin
leppie7-Aug-08 3:31
leppie7-Aug-08 3:31 
GeneralRe: pop3 encoding problems Pin
GeorgeBerry7-Aug-08 3:43
GeorgeBerry7-Aug-08 3:43 
GeneralRe: pop3 encoding problems Pin
leppie7-Aug-08 3:45
leppie7-Aug-08 3:45 
GeneralRe: pop3 encoding problems Pin
GeorgeBerry7-Aug-08 3:58
GeorgeBerry7-Aug-08 3:58 
GeneralRe: pop3 encoding problems Pin
leppie7-Aug-08 4:18
leppie7-Aug-08 4:18 
GeneralRe: pop3 encoding problems Pin
Jacques Bosch7-Aug-08 9:50
Jacques Bosch7-Aug-08 9:50 
George. You can't try to decode the entire mime part as it's not encoded. You can only decode the data that is encoded with Base64, which is:
AgAAAP//c0/NL0pPVXBKLSqq5ApJzUktKUpMTi1S0AgoqdRU8ClJ4XLNTczMUUgHq3MogavQ
S87Xq0oEabFS0DAwMtRUMDEy0TW3tDDgck7NAQoaWBjrmhqb6RqbGJhzAQA=


I could decode it fine.
When I run this:
			string test = @"AgAAAP//c0/NL0pPVXBKLSqq5ApJzUktKUpMTi1S0AgoqdRU8ClJ4XLNTczMUUgHq3MogavQ
S87Xq0oEabFS0DAwMtRUMDEy0TW3tDDgck7NAQoaWBjrmhqb6RqbGJhzAQA=";

			byte[] bytes = Convert.FromBase64String (test);
			Console.Write ("Converted: " + bytes.Length + " bytes.");

I get: Converted: 98 bytes.

I don't know the .Net mail classes so well, but there must be a way to get hold of the attachment's (the Base64 encoded data) and then you can decode it easily.

We can chat again tomorrow.
Jacques
GeneralRe: pop3 encoding problems Pin
Jacques Bosch7-Aug-08 9:53
Jacques Bosch7-Aug-08 9:53 
GeneralRe: pop3 encoding problems Pin
GeorgeBerry10-Aug-08 23:34
GeorgeBerry10-Aug-08 23:34 
Questionmissing operand ?? Pin
Hum Dum6-Aug-08 23:45
Hum Dum6-Aug-08 23:45 
AnswerRe: missing operand ?? Pin
Torsten Mauz6-Aug-08 23:59
Torsten Mauz6-Aug-08 23:59 
Questionconverting pixel array to image Pin
AmitDey6-Aug-08 22:54
AmitDey6-Aug-08 22:54 
AnswerRe: converting pixel array to image Pin
stancrm7-Aug-08 0:51
stancrm7-Aug-08 0:51 
GeneralRe: converting pixel array to image Pin
AmitDey7-Aug-08 1:00
AmitDey7-Aug-08 1:00 
GeneralRe: converting pixel array to image Pin
stancrm7-Aug-08 1:48
stancrm7-Aug-08 1:48 
GeneralRe: converting pixel array to image Pin
Mark Salsbery7-Aug-08 8:02
Mark Salsbery7-Aug-08 8:02 
Questionchild within child Pin
benjamin yap6-Aug-08 22:38
benjamin yap6-Aug-08 22:38 
AnswerRe: child within child Pin
DaveyM697-Aug-08 0:41
professionalDaveyM697-Aug-08 0:41 
QuestionN Products Pin
Brendan Vogt6-Aug-08 22:03
Brendan Vogt6-Aug-08 22:03 
AnswerRe: N Products Pin
Pete O'Hanlon6-Aug-08 22:42
mvePete O'Hanlon6-Aug-08 22:42 
AnswerRe: N Products Pin
Colin Angus Mackay6-Aug-08 22:50
Colin Angus Mackay6-Aug-08 22:50 
AnswerRe: N Products Pin
Alan Balkany7-Aug-08 3:54
Alan Balkany7-Aug-08 3:54 
QuestionListView Pin
benjamin yap6-Aug-08 21:52
benjamin yap6-Aug-08 21:52 
AnswerRe: ListView Pin
Kjetil Svendsen6-Aug-08 22:21
Kjetil Svendsen6-Aug-08 22:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.