PC Review


Reply
Thread Tools Rate Thread

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

 
 
Billy Zhang
Guest
Posts: n/a
 
      14th Aug 2008
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
 
Reply With Quote
 
 
 
 
Steven Cheng [MSFT]
Guest
Posts: n/a
 
      14th Aug 2008
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 <img> via 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: (E-Mail Removed).

==================================================
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?QmlsbHkgWmhhbmc=?= <(E-Mail Removed)>
>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
>


 
Reply With Quote
 
Billy Zhang
Guest
Posts: n/a
 
      14th Aug 2008
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 <img> via 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: (E-Mail Removed).
>
> ==================================================
> 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?QmlsbHkgWmhhbmc=?= <(E-Mail Removed)>
> >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
> >

>
>

 
Reply With Quote
 
Steven Cheng [MSFT]
Guest
Posts: n/a
 
      15th Aug 2008
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:


http://www.codeproject.com/KB/openGL/ntgraph3d_atl.aspx

http://www.codeproject.com/KB/atl/hktbcatl1.aspx

https://secure.codeproject.com/KB/CO...fid=42134&df=9
0&mpp=25&noise=3&sort=Position&view=Quick&select=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: (E-Mail Removed).

==================================================
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?QmlsbHkgWmhhbmc=?= <(E-Mail Removed)>
>References: <69DCE32D-A499-43D0-9EAD-(E-Mail Removed)>

<kat$0kd$(E-Mail Removed)>
>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
>> programmtically display an html <img> via 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: (E-Mail Removed).
>>
>> ==================================================
>> 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?QmlsbHkgWmhhbmc=?= <(E-Mail Removed)>
>> >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
>> >

>>
>>

>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I display a ppt or pps file into a access form? =?Utf-8?B?QW5ha2luSQ==?= Microsoft Powerpoint 0 25th Sep 2006 10:53 AM
How do I display excel file in FP w/ r/w access? =?Utf-8?B?R2lzbW8=?= Microsoft Frontpage 1 20th Jul 2006 09:16 AM
How can I display a jpg file on an Access form? =?Utf-8?B?YWlub3c=?= Microsoft Access Form Coding 2 7th Sep 2005 08:19 AM
Import data from Sony Clie Palm Desktop for Clie to Microsoft Outl =?Utf-8?B?U29ueSBDbGllIEZvcm1lciBVc2Vy?= Microsoft Outlook Discussion 1 29th Nov 2004 04:16 PM
IKernal.exe file missing and I can't install Sony Clie software Marcy Wood Windows XP Basics 1 21st Dec 2003 06:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:04 PM.