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 3 2843
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****@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=?= <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
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****@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=?= <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
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&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: ms****@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=?= <ht****@noemail .noemail> References: <69************ *************** *******@microso ft.com>
<ka************ **@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: ms****@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=?= <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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 tables in the database
where the code resides. If we move the database with the data tables to
a new directory, the links are no longer valid.
I tried to update the links by changing the Connect property and refreshing:
Set td = db.TableDefs(0)...
|
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 display the contents of a TIFF image file. According to the
very limited documentation that I have been able to locate so far, all I
should need to do is to drop the Image Edit Control onto the form in design
mode, set the control's Image property to...
|
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 less would
display, but those close to 300 pixels/inch or greater would not (MS
Access cannot recognize the file format xxx.jpg). The larger, original
images were scanned and saved as .bmp (at 300 dpi producing a 15MB
file). Then the images were...
|
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 want my users to be able to select a report, click on a command
button on a form, which will then automatically create the report as a
pdf file and save it to the user's machine.
I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
|
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"
---Start of test.aspx----
<%@ Page language="C#" AutoEventWireup="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
| |
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. The properties
look the same whether I use XP or 2003 versions of Office.
If I take an earlier version of Access and link the image, it puts the
image. I can also see the image in 2003. If I link the image using
2003 it only shows the filename....
|
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 site for a small club I belong to and one of
the features I would like to include is the ability to allow users to upload
image files.
unfortunately the servers web root www folder only allows READ and EXECUTE
permissions, which makes it...
|
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 want to extract all the tracks from a specific CD.
Right now, im using an array to stock all the data but its just a
question of time before everything blows up because of the size of the
array. Thats why im want to use an XML file (later i will...
|
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 one table. My problem is I have two buttons I want to use this code for for the two buttons would put the data in different tables. I have tried copying and changing a few things and nothing will work for me. The code is set up in a module and then I...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |