exchange server - How to download >1 MB Email attachment using EWS in C# -


i need download email attachments exchange server using exchange web service api 2.1 tried finditemresults. minimum size of files can download. but, if file size above 1 mb(i tried 2mb file). takes more time , throw time expired exception. know why exception. question is, can download big size of attachments?

you should use getitem, not finditem. use finditem id och mail attachment, entire mail getitem.

note finditem operation returns first 512 bytes (255 unicode characters) of property; therefore, message header collections longer 512 bytes truncated.

you can modify code in great answer suit needs: exchange web services api : mail attachments


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -