UUDecoder

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Hi guys,

I have several thousand mail files I need to extract attachments from. Most
of the attachments I can read but some are in a different format as shown
bellow. I've found some code for decoding the data but I can't seem to get
it working. I think the formatting with the new lines is confusing the code
I do have. Does anyone have some code for reading these files?




Dave
 
Peter,

I've tried Replace("\r\n","") and Replace("\r\nM","") with the latter
getting a much closer result (the header of the file is accurate then). But
with both attempts there are the incorrect number of characters for decoding
which generates an out of range indexing error. I'm guessing there is a
footer added when the "\r\nM" is added in as well. I'm currently trimming
everthing after the "end" text with Text = Text.Substring(0,
Text.IndexOf("\r\nend"))

As far as I can see the begining of the file is correct up until the end,
which is understandable given the indexing error generated when decoding. As
far as I can tell only the final character is incorrect.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top