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 answers
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#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in EXCHANGE-SERVER
- Directing proofpoint to ms exchange
- Allowing any member of a dynamic group to send as from a shared mailbox
- In Exchange 2019 on-prem, how do I configure send connectors to disable DNS lookups?
- List calculating each archive folders in Exchange On-Prem
- Share Outlook calendars with all members of specific security group
- Create exchange appointment using ews-javascript-api
- Microsoft outlook Caught exception in remote runspace creation, The WinRM service cannot process the request Redirect location reported
- Set-MailboxAutoReplyConfiguration not recognized even after installing as admin
- How to get the mailbox statistics data for more than 70,000 shared mailboxes in bulk
- Rails 7 send mail via Microsoft Exchange SMTP using oauth2
- Get .msg Copy by Criteria 'PR_INTERNET_MESSAGE_ID'
- MS Graph (Outlook) List messages 'ReceivedDateTime GT' operation failing by 1 second
- EWS Operation Item.Copy fails with 'full_access_as_app' permission
- EWS EmailMessage Move failed
- Can there be multiple DKIM and SPF records on one domain (alongside Microsoft Exchange hosted email)?
Related Questions in EXCHANGEWEBSERVICES
- Send M365 meeting invitations to selected attendees
- Graph api using search and orderby at sametime
- Create exchange appointment using ews-javascript-api
- Response from Exchange Web Service is invalid XML
- Exchange Audit Log Endpoint Returns 401
- Exception managing personal outlook.com e-mail using EWS (migration to OAuth2 required?)
- BluePrism - Move or upload a mail from one email Inbox to a different one
- EWS Operation Item.Copy fails with 'full_access_as_app' permission
- EWS EmailMessage Move failed
- exchange web services: export item which larger than 2GB got 400 with empty response
- Trying to get EWS account causes perfproc event 2002 and crashes
- Issue converting EntryId to EwsId, it gives ImmutableId
- How to migrate a function UploadItemFts(string folderId, byte[data]) on EWS managed api to Graph function
- BUG? deleting occurrence with ews managed api deletes entire series
- When I use the official ews Java API and demo call interface to retrieve the busy status of other users, I always report error 404
Related Questions in EXCHANGE-SERVER-2010
- Refining a function: How to run command on remote exchange server and receive results?
- is there a way to distribute xml exchange server add on on mobile intranet (outlook application) users
- how to recall Items using EWS?
- Character Reference Issue for Outlook
- How to get conversationTopic in Graph API?
- How to fix connection failing in PowerShell
- Exchange 2010 mail enabled public folder migration to Exchange 2013
- How to get Members of GroupMailboxes in PowerShell Exchange
- Value type error during changing of email addresses and aliases via PowerShell ISE
- How to obtain user principal names from canonical name of objects
- Remove characters from output in each row
- How can I create a new mailboxplan in Exchange 2010 powershell?
- Ms Exchange Online | Regex in Transport Rule
- Save EmailBody as PDF file using EWS API
- How to pass the value as a variable into get-mailbox with -identity
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?
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)
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