Comments (1)
I've now tried copying the calendar object manually, leaving the attachments empty and re-adding them.
var newCalendar = new Ical.Net.Calendar();
var vEvent = new Ical.Net.CalendarComponents.CalendarEvent
{
Attendees = calendarEvent.Attendees,
...
}
newCalendar.Events.Add(vEvent);
vEvent.Attachments = newAttachments;
var serializer = new CalendarSerializer();
var serializedCalendar = serializer.SerializeToString(newCalendar);
My attachment data only get serialized when you don't specify a URI.
You can't combine byte[] data and an URI. The URI will take priority and your data won't get serialized.
So how do we link attachments to their inline cid (i.e. name them and mark them as inline)?
from ical.net.
Related Issues (20)
- Time Zone ends as UTC on notification HOT 2
- .GetOccurrences() only looking at first RecurrenceRules HOT 2
- Modify a Recurring/occurrence Instance
- PeriodSerializer not working with midnight DATE-TIME.
- ios 16 calendar issue
- GetOccurrences Creates event with invalid time due to Daylight Savings changes
- GetOccurences not respecting different timezones in ICS file HOT 1
- RDATE deserialization: Can't keep apart Periods and Dates/Times
- How can I find the rest of the instances of a recurring event? HOT 1
- AsDateTimeOffset return wrong offset for America/mexico_city time zone HOT 1
- CalendarEvent mixes up `DURATION` and `DTEND` on deserialization
- Report PRODID and line number when parse exception occurs
- Natural Language de/serialization HOT 1
- Serialize and then Load calendar breaks GetOccurrences HOT 1
- Regex failure
- AddTimeZone(string, DateTime, bool) fails if the DateTime parameter is a leap day (February 29) HOT 1
- [Question] How to load calendar data from generic (Synology) CalDav server with username / password authentication? HOT 1
- Sync issue with Outlook 365 Calendar
- Read Organizer.SentBy throw exception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ical.net.