Cannot display inline images in HTML using Gmail API with RoR?

五迷三道 提交于 2019-12-13 02:27:25

问题


Im building a webmail client in RoR and using Gmail's API.

After receiving a response from Gmail's api for a multipart email, I was able to extract the text/html portion and display it in the browser correctly. Everything looks fine except all of the images are broken.

Upon inspecting the HTML, it shows <img src="cid:google_logo">. I understand that this is an inline image referencing the actual image from the attachments. But where and how do I load the attachments into the browser?

I've been looking everywhere and I cannot find a solution. Please help...

来源:https://stackoverflow.com/questions/30144192/cannot-display-inline-images-in-html-using-gmail-api-with-ror

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!