I need to Download Email Attachments from Exchange Server using Exchange Web Service API 2.1 I was tried FindItemResults. Minimum size of files can be download. but, If the file size is above 1 MB(I tried with 2MB file). It takes More time and throw Time expired Exception. I know Why this exception. But My question is, can I download big size of attachments?
How to download >1 MB Email attachment using EWS in C#
1.2k Views Asked by Suresh Kumar At
2
There are 2 best solutions below
3
Glen Scales
On
The default timeout in the EWS Managed API is 90 seconds so if the download isn't completing in that time you'll get a time out exception thrown. You can just increase the timeout by setting the timeout property on the ExchangeService class eg
Service.Time = 300000;
300000 = 300000 milliseconds or 5 minutes
Cheers Glen
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in EXCHANGE-SERVER
- Create Exchange Message Items with EWS and mark them for deletion
- How to import meetings into office365 (EWS and Powershell?)
- EWS Service.FindItems() throws an exception when using SearchFilter.IsEqualTo
- Is there any way to get the list of available equipment in exchange server?
- How to download >1 MB Email attachment using EWS in C#
- Access Exchange mailbox information
- Programmatically determining whether or not Exchange is installed
- How to read from exchange server asynchronously using IMoniker and IStream Interface
- EWS Office 365 Impersonation not working
- calendar schedule request send to the user is accepted or not?
- Run Script to Append Subject and Body of Email
- Java - get contacts from outlook
- Create contacts in Exchange through EWS
- ActiveSync Co-existence failing
- perl office365 imap TLS access not working using IMAPClient
Related Questions in EXCHANGEWEBSERVICES
- PowerShell EWS Save as for e-mails
- Create Exchange Message Items with EWS and mark them for deletion
- How to cache Exchange web service API autodiscoverurl?
- Can't call EWS service with API Java SSL and certificates
- EWS Service.FindItems() throws an exception when using SearchFilter.IsEqualTo
- How to download >1 MB Email attachment using EWS in C#
- Office 365 Exchange Mailbox Properties
- EWS Office 365 Impersonation not working
- EWS Managed API: Identify deleted email when fetching from "AllItems" folder
- Can't find MasterCategoryList in ExchangeWebServices
- Microsoft Graph API Accessing basic info of a user that is outside tenancy
- EWS managed API for Windows Phone8 App
- Exchange Web Service Create a contact and add to global address list
- EWS Managed Api - Attachment URL
- Create contacts in Exchange through EWS
Related Questions in EXCHANGE-SERVER-2010
- Can't call EWS service with API Java SSL and certificates
- How to download >1 MB Email attachment using EWS in C#
- Create contacts in Exchange through EWS
- imap_search problems with Exchange 2010
- How to search for an Exchange appointment for an iCalUid using Java EWS API?
- how to give calendar permissions administratively? Outlook 2010/Exchange 2010
- php ews return more than 1,000 contacts from Exchange Server
- How to use PowerShell to set-mailbox alias Exchange 2010
- Exchange Web Services (EWS) client doesn't work on server, but works locally
- EWS Managed API Double Hop
- How to set Microsoft.Exchange.WebServices.Data.Appointment When property on Update()?
- Add a second Exchange 2010 server to enable upgrade to SP3
- Outlook 2010 calendar slow for offsite server users
- Exchange 2010: How can I check what permissions a user/mailbox has towards other mailboxes?
- Disable an Exchange 2010 mailbox using VB.Net
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You should use GetItem, not FindItem. Use FindItem to get the Id och the mail with the attachment, then get the entire mail with GetItem.
You can modify the code in this great answer to suit your needs: Exchange Web Services API : get mail attachments