Can not show the inline image #79

Closed
lichuanjun opened this Issue Mar 12, 2013 · 3 comments

Projects

None yet

3 participants

@lichuanjun

Hi,I recived a mail with IMAP folder,this mail has some images inline .When I show the mail use a UIWebView,like this :[webView loadHTMLString:msg.htmlBody baseURL:nil],it can show the text part ,but the image just a frame and its alt name.What is the problem?Is this version donot support inline image?because I see this "For JPEG's We are ignoring the Content-Disposition:inline;not sure if we should be doing this?" in CTMIMETests.m. If this is the reason that I cannot show the image ,I Strongly recommended that we should do it.

@Shasoosh

I'm having the same problem.

@lichuanjun

Hi,Shasoosh.I found a solution,you should retrive the content of the image which encoding on base64 and the content -ID,they are included in rfc822.The struct like this :
Content--Type:image/jpeg;
name="image003.jpg"
Content-Transfer-Encoding:base64
Content-ID:image003.jpg@.....

9j4A.....

I recommend you have a look at the doc of rfc822.

@mronge
Member
mronge commented Mar 14, 2013

This RFC should be helpful http://tools.ietf.org/html/rfc2392

@mronge mronge closed this Mar 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment