title: How to create an "add to calendar" iCal link (.ics file) from server data and send it back to my webApp?
body: <p>I am working on prototyping something, and I'm hoping someone can help me. I am trying to create an <code>Add event to calendar</code> link which will download and open an iCal file (.ics), so that they can add it to their calendar.</p>
  
  <p>We are using Jax-RS with Jersey and tomcat as the container, and I have the <code>iCal4j</code> package. The client is jQuery/backbone. </p>
  
  <ol>
  <li>I am not sure which is the correct way to return the data. If I should be creating an ics file and storing it somewhere before returning it, or sending back a CalendarOutputter filestream from iCal4j?</li>
  <li>If I do create an ics file, where do I store that? WEB-INF folder? How?</li>
  <li>If returning the filestream, what is the correct @Produces(?) for Jax-RX?</li>
  </ol>
  
  <p>Thanks,
  Ray</p>