How to access and display the jpg file on the fly using js in clie

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QmlsbHkgWmhhbmc=?=

    How to access and display the jpg file on the fly using js in clie

    I have a asp.net app, in the page there is a scan activex which could scan
    and save a jpg file in client harddisk.

    How could we access and display this jpg file on the fly using js in the
    client IE?

    Thanks,
    -Billy zhang
  • Steven Cheng [MSFT]

    #2
    RE: How to access and display the jpg file on the fly using js in clie

    Hi Billy,

    As for web page and javascript, it is not allowed to access client
    computer's file system. Actually, both IE7 and firefox restrict local image
    file viewing. So far based on my research, some workarounds availables are:

    1. Upload image to server-side so that we can use script to
    programmtically display an html <imgvia a server-side url

    2. Integrate the image displaying functionality into the ActiveX control.
    That means use ActiveX control to load local file image and display it.
    Maybe you can add another ActiveX control on the page to do the work.

    BTW, I found that silverlight 2 seems support local image loading.

    #Loading Images from the Local File System in Silverlight 2.0
    In Silverlight 1.1, it was impossible to load images from the local file system unless you uploaded them to a server first. In Silverlight 2.0, it’s a piece of cake […]

    s-from-the-local-file-system-in-silverlight-2-0.aspx

    Sincerely,

    Steven Cheng

    Microsoft MSDN Online Support Lead


    Delighting our customers is our #1 priority. We welcome your comments and
    suggestions about how we

    can improve the support we provide to you. Please feel free to let my
    manager know what you think of

    the level of service provided. You can send feedback directly to my manager
    at: msdnmg@microsof t.com.

    =============== =============== =============== =====
    Get notification to my posts through email? Please refer to

    http://msdn.microsoft.com/en-us/subs...#notifications.

    =============== =============== =============== =====
    This posting is provided "AS IS" with no warranties, and confers no rights.



    --------------------
    >X-WBNR-Posting-Host: 207.46.192.207
    >From: =?Utf-8?B?QmlsbHkgWmh hbmc=?= <htinns@noemail .noemail>
    >Subject: How to access and display the jpg file on the fly using js in clie
    >Date: Wed, 13 Aug 2008 19:28:01 -0700
    >
    >I have a asp.net app, in the page there is a scan activex which could scan
    >and save a jpg file in client harddisk.
    >
    >How could we access and display this jpg file on the fly using js in the
    >client IE?
    >
    >Thanks,
    >-Billy zhang
    >

    Comment

    • =?Utf-8?B?QmlsbHkgWmhhbmc=?=

      #3
      RE: How to access and display the jpg file on the fly using js in

      Do you know any lightweight ATL control which could display jpg?

      "Steven Cheng [MSFT]" wrote:
      Hi Billy,
      >
      As for web page and javascript, it is not allowed to access client
      computer's file system. Actually, both IE7 and firefox restrict local image
      file viewing. So far based on my research, some workarounds availables are:
      >
      1. Upload image to server-side so that we can use script to
      programmtically display an html <imgvia a server-side url
      >
      2. Integrate the image displaying functionality into the ActiveX control.
      That means use ActiveX control to load local file image and display it.
      Maybe you can add another ActiveX control on the page to do the work.
      >
      BTW, I found that silverlight 2 seems support local image loading.
      >
      #Loading Images from the Local File System in Silverlight 2.0
      In Silverlight 1.1, it was impossible to load images from the local file system unless you uploaded them to a server first. In Silverlight 2.0, it’s a piece of cake […]

      s-from-the-local-file-system-in-silverlight-2-0.aspx
      >
      Sincerely,
      >
      Steven Cheng
      >
      Microsoft MSDN Online Support Lead
      >
      >
      Delighting our customers is our #1 priority. We welcome your comments and
      suggestions about how we
      >
      can improve the support we provide to you. Please feel free to let my
      manager know what you think of
      >
      the level of service provided. You can send feedback directly to my manager
      at: msdnmg@microsof t.com.
      >
      =============== =============== =============== =====
      Get notification to my posts through email? Please refer to
      >
      http://msdn.microsoft.com/en-us/subs...#notifications.
      >
      =============== =============== =============== =====
      This posting is provided "AS IS" with no warranties, and confers no rights.
      >
      >
      >
      --------------------
      X-WBNR-Posting-Host: 207.46.192.207
      From: =?Utf-8?B?QmlsbHkgWmh hbmc=?= <htinns@noemail .noemail>
      Subject: How to access and display the jpg file on the fly using js in clie
      Date: Wed, 13 Aug 2008 19:28:01 -0700
      >

      I have a asp.net app, in the page there is a scan activex which could scan
      and save a jpg file in client harddisk.

      How could we access and display this jpg file on the fly using js in the
      client IE?

      Thanks,
      -Billy zhang
      >
      >

      Comment

      • Steven Cheng [MSFT]

        #4
        RE: How to access and display the jpg file on the fly using js in

        Thanks for your reply billy,

        As for image activex control, I'm not sure about those commercial ones. If
        you want to build a simple one on the fly, you can refer to the following
        examples on code project which maybe helpful:







        0&mpp=25&noise= 3&sort=Position &view=Quick&sel ect=1358489

        Sincerely,

        Steven Cheng

        Microsoft MSDN Online Support Lead


        Delighting our customers is our #1 priority. We welcome your comments and
        suggestions about how we

        can improve the support we provide to you. Please feel free to let my
        manager know what you think of

        the level of service provided. You can send feedback directly to my manager
        at: msdnmg@microsof t.com.

        =============== =============== =============== =====
        Get notification to my posts through email? Please refer to

        http://msdn.microsoft.com/en-us/subs...#notifications.

        =============== =============== =============== =====
        This posting is provided "AS IS" with no warranties, and confers no rights.
        --------------------
        >From: =?Utf-8?B?QmlsbHkgWmh hbmc=?= <htinns@noemail .noemail>
        >References: <69DCE32D-A499-43D0-9EAD-3A61C066246B@mi crosoft.com>
        <kat$0kd$IHA.39 88@TK2MSFTNGHUB 02.phx.gbl>
        >Subject: RE: How to access and display the jpg file on the fly using js in
        >Date: Wed, 13 Aug 2008 23:55:01 -0700
        >
        >Do you know any lightweight ATL control which could display jpg?
        >
        >"Steven Cheng [MSFT]" wrote:
        >
        >Hi Billy,
        >>
        >As for web page and javascript, it is not allowed to access client
        >computer's file system. Actually, both IE7 and firefox restrict local
        image
        >file viewing. So far based on my research, some workarounds availables
        are:
        >>
        >1. Upload image to server-side so that we can use script to
        >programmticall y display an html <imgvia a server-side url
        >>
        >2. Integrate the image displaying functionality into the ActiveX
        control.
        >That means use ActiveX control to load local file image and display it.
        >Maybe you can add another ActiveX control on the page to do the work.
        >>
        >BTW, I found that silverlight 2 seems support local image loading.
        >>
        >#Loading Images from the Local File System in Silverlight 2.0
        >>
        http://www.wintellect.com/cs/blogs/j.../loading-image
        >s-from-the-local-file-system-in-silverlight-2-0.aspx
        >>
        >Sincerely,
        >>
        >Steven Cheng
        >>
        >Microsoft MSDN Online Support Lead
        >>
        >>
        >Delighting our customers is our #1 priority. We welcome your comments
        and
        >suggestions about how we
        >>
        >can improve the support we provide to you. Please feel free to let my
        >manager know what you think of
        >>
        >the level of service provided. You can send feedback directly to my
        manager
        >at: msdnmg@microsof t.com.
        >>
        >============== =============== =============== ======
        >Get notification to my posts through email? Please refer to
        >>
        >>
        http://msdn.microsoft.com/en-us/subs...#notifications.
        >>
        >============== =============== =============== ======
        >This posting is provided "AS IS" with no warranties, and confers no
        rights.
        >>
        >>
        >>
        >--------------------
        >X-WBNR-Posting-Host: 207.46.192.207
        >From: =?Utf-8?B?QmlsbHkgWmh hbmc=?= <htinns@noemail .noemail>
        >Subject: How to access and display the jpg file on the fly using js in
        clie
        >Date: Wed, 13 Aug 2008 19:28:01 -0700
        >>
        >
        >I have a asp.net app, in the page there is a scan activex which could
        scan
        >and save a jpg file in client harddisk.
        >
        >How could we access and display this jpg file on the fly using js in
        the
        >client IE?
        >
        >Thanks,
        >-Billy zhang
        >
        >>
        >>
        >

        Comment

        Working...