Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using SilverLight to communicate to a USB device from browser

Posted on 2008-06-15
2
Medium Priority
?
2,172 Views
Last Modified: 2013-11-12
Hi Experts,
We have a ASPNET web application and now we have a new request: the client wants to communicate with their USB device using our application. They plug the device into their PCs, open a page of our web application and the page will communicate with the device to get some input. Of course the device must already have proper driver. Comunication here means reading some input from the device.

Someone said that we can use JAVA to do this. However, I also want to know if we can do this using Silver Light? Can someone give me a guide or a link which tells me how to do?

Thank you for reading.
0
Comment
Question by:thuannguy
2 Comments
 
LVL 6

Accepted Solution

by:
apb2 earned 1500 total points
ID: 21793192
Hi thuannguy

This is an interesting question. Off the top of my head i would say this isn't possible under the current sandbox enviroment. I for one wouldn't like a web site to have the capabilities of connecting to a device, witout some clear authorization.

I would look at creating an Xbap, the user can authorise the application to have greater permissions to gain connectivity to your usb device.

a usb device, like a camera, you will be able to upload files from this device use FileOpenDialog.
http://vivekdalvi.wordpress.com/2007/06/01/safe-file-open-dialog/

Like i said i haven't had a look into this and someone could prove me wrong.

hth

apb2
0
 
LVL 6

Author Comment

by:thuannguy
ID: 21890822
Hi,
After learning a bit about silver light, I found out that it doesn't allow us to access to higher security zones, and the local pc is counted as a zone. The safe-file-open may be the only one feature which allow us to upload file.
Anyway, thank for you help.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Screencast - Getting to Know the Pipeline

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question