Problem in opening .ics and .vcs file types through servlet in IE browser.

I'm having problem in downloading an .ics and .vcs file through servlet in I.E browser. It is happening fine in Mozilla firefox(they both are getting opened in OutLook), but in IE it says as undefined file type.
I'm using Content Type as : 'text/Calendar' and then setting header as :
response().setContentType("text/Calendar");
response().setContentLength(file.length());
response().setHeader("Content-Disposition", "attachment;
filename="+filepath);
and after that i'm writing it to OutPut stream.
Plz Help.

Hi,
On page load check whether the session values are there. If not redirect the user to the login page.
Hope this helps,
Regards,
Sammani

Similar Messages

  • .ics and .vcs files

    does anyone know of a free program other than outlook that I can download to open and manage .ics or .vcs files?

    Hi Kenny,
    The .ics file opens in iCal for me. The .vcs file opens as text. This is probably a mime type problem.
    You might want to try adding a htaccess file to your site including the following lines:
    AddType text/x-vCalendar .vcs
    AddType text/Calendar .ics
    Best wishes
    John M

  • Since I have connected my iPad with the MacBook through ICloud I have problems in Preview of opening PDF- and JPG-files. Does anyone have a solution for this?

    Since I have connected my iPad with the MacBook through ICloud I have problems in Preview of opening PDF- and JPG-files. Does anyone have a solution for this?

    I'm not sure I understand the connection between iCloud and this problem.  Is it simply a problem of coincidental timing (ie, the problem happened after you set up iCloud)?  If so, there's almost certainly no connection between these two events.
    Where are you getting the files you're trying to open, and what specifically happens when you try to open them?

  • Downloads - I want to open some PDFs/other file types from the internet but not have to save them; I can't figure out how to view them and close them without having to save them first.

    Downloads - I want to open some PDFs/other file types from the internet but not have to save them. I can't figure out how to view them and close them without having to save them first. When I click on a file, the downloads box opens and depending on the setting, it auto saves the file or asks me where to save the file. What if I don't want to save it anywhere, I just want to view it and close it?

    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

  • A clicked link embedded in email (Outlook Express) takes forever to open in Firefox - the file type instruction is as follows: "C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -url "%1". Why is this corrupted?

    I believe the above problem started after a recent Windows update to my PC. I found a solution. First I open My Computer, Folder Options and then File types. File types affected: (None) Hypertext Transfer Protocol and (None) Hypertext Transfer Protocol with Privacy. When I change the Advanced Application to be Used by eliminating "requestPending -osint -yrl" from the entry, email links open almost instantly again. The problem is that the change I make is not permanent. Something keeps switching it back to the corrupted form and links don't work properly from my email.

    I suspect you may need to modify your Windows registry settings to make the changes permanent. That said, I believe the command line options you wish to remove act as safeguards, I would caution against removing them.
    '''-requestPending'''<br>
    Tells the application that there will be a Windows DDE request to open the same url specified on the command line.
    (Windows DDE is a method for transferring data between applications.)
    '''-osint'''<br>
    Tells the application that it is being launched by the OS shell.
    '''-url URL'''<br>
    Open URL in a new tab or window, depend on the browser option.
    For more info, see [https://developer.mozilla.org/en/Command_Line_Options here].
    You could try removing the -requestPending option (leaving the other options) and uncheck/clear the "Use DDE" checkbox. This may speed things up.
    With regards to editing the Windows registry, please see [http://support.microsoft.com/kb/310516 here]. '''Remember to back up your registry first!'''
    I believe you will need to modify the following registry keys:
    Software\Classes\http\shell\open\command<br>
    Software\Classes\https\shell\open\command<br>
    Software\Classes\ftp\shell\open\command<br>
    Let us know how you get on.

  • Repeated problem of broken link and unused files

    Hi ,
    I am using RH8.0.2
    I have updated my RH8 to RH8.0.2 and then fix all broken link and did what was advised.i got result, everything was fine, I was a happy man. Today when i open the same project for updation, i found again plenty of broken links and unused file in the same project.
    Is there any permanent solution of the problem of broken links and unused file or i have to fix it every time when i open my project?
    Plz help!!!
    Br,
    Rahul

    Hi Rahul.
    Two things. Firstly some of the paths you have in your project are very long. In the example you have given we are seeing less than half the path. This may not be the problem but it maybe in the future. Secondly, as Peter has suggested, the problem maybe related to source control. Do you use it? I have heard of instances where (e.g. .FPJ) files cause issues.
    Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
    Follow the RoboColum(n) on Twitter

  • Can't open doc and rtf files on my nokia e61i

    hi!I am new here,i have a problem with my e61i,I can not open doc and rtf files,if someone has a clue to tell me how can i fix the problem i'll be gratefull

    I don't know if this will help but I had a similar problem that started yesterday. I have two macs.  Once can't open MS Office files from the other Mac but can open Office files on each Mac. Drove me nuts for about 2 hours today - on the phone with Apple twice and Microsoft once.  Finally found a similar post from 2007 that suggested to turn off and on file sharing by unchecking the "Share files and folders using AFP", on both computers and rebooting. That fixed it. 
    Funny thing, it was only with Office files I created since updating the software last week. Old Office files opened fine. 

  • Problem of long loading and processing file in outlook 2010 of domain user

    Dear all,
    I have a problem on long loading and processing file when every open outlook 2010
    This problem occur when I join my computer to domain (window server 2008 r2) and set outlook of domain user to use shared .pst file, owner by administrator of that computer. Every time when log in to domain user and I open the outlook, it will take very
    long time to loading and processing the file, moreover it always ask password of the email I have set. However, when I finish input password and it is finish send/receive the email, the program work normally.
    I also try with another user account which is the administrator of that computer, the program run very fast and work normally.
    I am not sure the problem is caused from, or is it the wrong way to share .pst file with another user? Any suggestions please give to me.
    Thanks in advance.

    Hello,
    You should ask in one of the following forums, depending on your version of Microsoft Exchange:
    Exchange Server 2013 - Outlook, OWA, POP, and IMAP Clients
    Exchange Previous Versions - Outlook, OWA, POP, and IMAP Clients
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Create ICS or VCS File

    I would like to create an app that allows a user to enter date(s) then in return it creates an ICS or VCS file.
    1. Im not sure what the difference is between the two files could anyone advise?
    2. Where could i read up on this to achieve the task mentioned above?
    3. Any code examples anyone could provide?
    Thanks in advance.

    Hello T-800,
    Welcome to MSDN Forums!
    For the details of ICS and VCS please refer to these link:
    http://en.wikipedia.org/wiki/ICalendar
    And they just a kind of file format, actually they are a text file which describe a appointment in some standard format, so I think your question is not related to VSTO, even Outlook, so, I think you are off-topic in this forum.
    However, here's a blog article you could refer to :
    http://weblogs.asp.net/bradvincent/archive/2008/01/16/creating-vcalendars-programmatically.aspx
    Thanks.
    Tim Li
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact [email protected]
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • When I try to open an .ai/pdf file received through my email, it won't open and asks for a password. I have never set up any kind of password for email security, but have tried typing in my standard passwords. Nothing works. I wonder if it has anything to

    When I try to open an .ai/pdf file received through my email, it won't open and asks for a password. I have never set up any kind of password for email security, but have tried typing in my standard passwords. Nothing works. I wonder if it has anything to do with the use of my Wacom3 Tablet...I've been having trouble with it and was getting the same message when trying to open the User's Manual in my Applications/WacomTablet file on my hard drive. Any suggestions? I just downloaded the latest version for the Wacom and recently upgraded to Snow Leopard 10.6.7 (which I hate, and my CS3 hates, etc.)

    It sounds like you have a a password-protected PDF. The password was set by the person who encoded it.

  • When in mode dev to develop my website, I can't open buttons and PDF files to check my changes or somebody else's changes. What is wrong ? (I updated  Adobe Reader)

    when in mode dev to develop my website, I can't open buttons and PDF files to check my changes or somebody else's changes. What is wrong ? (I already updated  Adobe Reader)

    Oh no... NOT THE 99-PAGER!!! Anything but THAT!!!

  • Spotlight/Finder Doesn't Search In ASP and other file types?

    .asp and .c file types are nothing more than .txt files with different extentions..
    Am I correct in thinking that Spotlight doesn't search inside these files? I have a folder full of asp files and spotlight doesn't seem to find anything when I type text that I know is inside one (as a test)
    It does appear to search INSIDE .html files in the same folder.. Can you add different file extentions that spotlight will search into?
    If not, then "Spotlight" is much ado about nothing as google desktop search, X1 and the msn desktop search (Windows) released years ago search inside ALL files..
    Signed,
    Curious Switcher
    Wayne Bienek
    Mac Pro 3Ghz / 4GB Ram Mac OS X (10.4.8) 30" Cinema Display + 20 " Cinema Display

    Spotlight makes a content index for files using mdimporter, and that process depends on mdimporter modules for the specific file type. Thus in /Library/Spotlight you will see a collection, such as Microsoft Office.mdimporter, of "extras" for special file types. There are also the built-in ones in /System/Library/Spotlight. If you installed Xcode/Developer Tools, there should be a SourceCode.mdimporter, which I imagine would index the asp and c files. If not, some people have modified it to also index php files, see this discussion:
    http://www.macosxhints.com/article.php?story=20050514182520714&query=spotlight%2 Bphp%2Bfiles
    at MacOSXHints. I think you could do something similar (at your own risk of course) for other pure text based files. Be sure to expand the the replies and read them.
    Francine
    Francine
    Schwieder

  • How can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?

    Hi,
    I would like to know as to how can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?
    Kindly advice.
    Thanks
    Priya

    Special > Hypertext > Command "open document" will do its best to open the target document inside FrameMaker, which may not be much help; Special > Hypertext > Command "message …" will use the application you specify. The user guide for 7.0 says this about absolute links, and I don't think anything has changed since:
    For example, to start PaintBrush and open the Ship.pcx file on drive C you would use the command message system pbrush.exe C:/Ship.pcx
    I've not often used a relative link, and not recently: the same source says
    folder levels are separated by a slash / even in Windows and Mac
    [relative links] FrameMaker searches for a relative pathname beginning in the folder that contains the current document
    [absolute links] FrameMaker searches for an absolute pathname beginning at the top of the file system. In Windows, the absolute pathname begins with the drive specifier, a colon and a slash.

  • Slow to open Illustrator and Photoshop files from FileServer

    I have a client that has 5 or so Mac users who cannot open Illustrator and Photoshop files from our Windows Server 2008 R2 Standard. At first, we thought it might be the size of the files over the network because some files are 2-3GB, but they are even having issues with files 200KB. We also tested network and bandwidth speeds, but they are all connected to Gigabit connections and running with PowerMacs.
    Some users have a workaround by copying the files to their desktop to open, but that is becoming tedious as well.
    Does anyone have another solution or know what might be cause to this?

    >Anyone know a way?
    You want to edit a Photoshop file, buy Photoshop. You want to edit an Illustrator file, buy Illustrator.

  • My mac says that it has 40 gb of movies on it but when i finder search for file size, and for file type it gives me no videos

    My mac says that it has 40 gb of movies on it but when i finder search for file size, and for file type it gives me no videos or movies. I have called apple 3 times and each time they do the same thing and then do something that takes awhile to finish so we hang up and then it never works.
    Please Help

    each time they do the same thing
    And what thing might that be?

Maybe you are looking for