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)

CRM 2013: Javascript to read file content as byte array

(0) ShareShare
ReportReport
Posted on by

I have a custom entity in the form of which I have an embedded websource (html\javascript). I am using the input "file" to browse a local file.

Now I want to be able to read the content of the chosen file as byte array and store it - which later will be used by an external system ( written in C# code). FYI-  the file could be of any kind -txt,pic, pdf .....

Could some one kindly tell me the simplest java script code to achieve at least the reading part.

I think I will be able to take care of the storing part (I am planning store the bytes as "space" separated string in multiline text field)

PLEASE DO NOT TELL ME TO USE NOTES AND ATTACHMENTS - as it's not going to serve my need. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at

    hi..

    Check this

    www.html5rocks.com/.../dndfiles

    developer.mozilla.org/.../Using_files_from_web_applications

    This is showing how to read uploaded file bytes.. then you can easily store this information into CRM.

    Hope this will help..

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