What is the correct way to read a MIME encoded stream?

I have a TCP socket with streaming MIME messages on it. I can use the JavaMail API to parse a single MIME message at the same time by searching for the border, then searching for the + border character.

This is like a lot of string manipulation. Someone out there should correctly translate MIME coding in Java. Where is he hiding?

+3
source share
1 answer

Take a look at this library:

http://code.google.com/p/mimeparser/

+1
source

Source: https://habr.com/ru/post/1705351/


All Articles