web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Mime type decode for docx

(0) ShareShare
ReportReport
Posted on by

In our activitymimeattachments  i am trying get value from the attachment body.

In case of plain text-

"mimetype":"text/plain","filename":"order.txt","body":"c2ItMDAz".

i can get value as 'sb-003' using base64 convertion.

but in case my attachment is docx with the same value(body value of the above-'sb-003') -

"mimetype":"application/vnd.openxmlformats-officedocument.wordprocessingml.document" 

i can't get the value from the body.so how to get the docx mimetype file values

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    it's not about the mimetype

    it's the content that you need to parse, when is a text-plain what you write is what is encoded, for docx is the word encoding, if you open the .docx file with a text editor (like notepad) you will see that there are other characters and not only the text you wrote.

  • ganeshm Profile Picture
    on at

    ya i have seen it before,but how to get the text from the docx.I having problem in getting it.

    when i trying get the text directly from the docx attachment,while converting base64 to byte and then to a string it gives me junk mesg.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans