save attachment in mobile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • santosh singh
    New Member
    • Aug 2006
    • 3

    save attachment in mobile

    for mobile browser i used the following code :

    Response.Conten tType = "applicatio n/vnd.wap.xhtml+x ml";
    Response.Append Header("Content-Disposition","a ttachment; filename=SailBi g.jpg");
    Response.Transm itFile( Server.MapPath( "~/images/sailbig.jpg") );

    but this code is not able to open "Save as dialog box " on mobile Emulator Browser .Could anyone please tell me How to open "Save as dialog box " in mobile . i am using XHTML ( not WAP ) with ASP.NET & C# .
  • santosh singh
    New Member
    • Aug 2006
    • 3

    #2
    open & save attachment in mobile

    Task :
    A web mail application that runs on mobiles.

    User should get an option to save the attachments (similar to one gets in Web and Windows apps).

    This needs to be done in xhtml (not WML) with ASP.NET & C#



    Approach:



    1. To get the precedence, tried to open the attachments as follows :

    Initially i tried to download attachments in Yahoo mails on Motorolla (Black Razr V3), iMate ( SP3 ) and Samsung (E830 SlimSider 2.0 mega). But the attachments can be viewed but cannot be downloaded on these devices



    2. Tried on various ways but this seemed most promising:



    //Response.Conten tType = "applicatio n/vnd.wap.xhtml+x ml" is correct MIME type of my mobile browser
    Response.Conten tType = "applicatio n/vnd.wap.xhtml+x ml";
    Response.Append Header("Content-Disposition","a ttachment; filename=SailBi g.jpg");
    Response.Transm itFile( Server.MapPath( "~/images/sailbig.jpg") );

    This code works perfect for IE browser (opens " Save As Dialog Box" and then Saves); But when tested on mobile Emulator (YOSPACE) ,it gives me blank screen after clicking on Attachment .



    So, this code is not able to open "Save as dialog box " on mobile Emulator Browser.



    I am exploring further. If you have any indicators on this, please let me know.

    Comment

    Working...