473,320 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
Aug 14 '08 #1
3 2818
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
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: ms****@microsoft.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?QmlsbHkgWmhhbmc=?= <ht****@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
Aug 14 '08 #2
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
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: ms****@microsoft.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?QmlsbHkgWmhhbmc=?= <ht****@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

Aug 14 '08 #3
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=1 358489

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: ms****@microsoft.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?QmlsbHkgWmhhbmc=?= <ht****@noemail.noemail>
References: <69**********************************@microsoft.co m>
<ka**************@TK2MSFTNGHUB02.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
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
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: ms****@microsoft.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?QmlsbHkgWmhhbmc=?= <ht****@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

Aug 15 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
3
by: Dalan | last post by:
At first I was not certain what could cause Access 97 from displaying most jpeg images, but not all. After further testing, it seemed that all original images of less than 275 pixels per inch or...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
29
by: Patrick | last post by:
I have the following code, which regardless which works fine and logs to the EventViewer regardless of whether <processModel/> section of machine.config is set to username="SYSTEM" or "machine" ...
7
by: needin4mation | last post by:
Hi, I have an Access 2002 - 2003 database. I am using Access 2003. Whenever I link an image all it shows is the filename. Not the image. Other versions of Access can link the image just fine. ...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
3
by: SM | last post by:
Hello, Im trying to access elements in my XML file using the JavaScript DOM but i'm not sure how. I use AJAX to access the XML and then use the responseXML property to access the XML file data. I...
6
by: provor | last post by:
Hello, I have the following code that I am using when a user presses a button to import an excel file into a table. The code is hard coded to point to the correct table. This works great for this...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.