Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment Encoding #22

Open
maherdaher94 opened this issue Jan 23, 2020 · 2 comments
Open

Attachment Encoding #22

maherdaher94 opened this issue Jan 23, 2020 · 2 comments

Comments

@maherdaher94
Copy link

Hello,

I found you code very helpful, thank you.
But i need the attachments encoding because i need to create files on a remote server usinf the attachments so basically i will convert them to base64 strings.
But i cannot know the encoding of the file.content.
i am using reader. readAsDataURL but i cannot read it.
Appreciate the help.

Thanks.

@bluefire2121
Copy link

reader = reader.Filereader()

reader.readAsArrayBuffer

reader.onload = () => 'do what you need'

@bilal68
Copy link

bilal68 commented Aug 10, 2021

Hi @ykarpovich
it really helpful... But I have an issue. I am parsing a .msg file which have an image embeded as cid link i.e:
"

"

when this file is parsed with your example the image does't show up. but when I open this file in outlook it appears correctly. kindly help me, thank you in advance.
I have attach both the examples
image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants