I'm new to silver light 4. I need to capture Image from webcam and save into local application folder named 'temp'. When i click save button, the snapshot should save in that folder. I have searched in Google and got samples to save in local machine, but not in the application. please guide me friends.
Thanks..
You cannot directly access the file system from Silverlight (at least in normal browser mode). This is a security precaution to stop it being misused.
The exception to that is Isolated Storage, which is a safe area set aside for each Silverlight application to read/write from/to.
This link has some examples you can work though: http://www.silverlight.net/learn/graphics/file-and-local-data/isolated-storage-(silverlight-quickstart)
Related
I have created a windows form application that is a face recogniser using EMGU CV. I also have a website which is locally hosted on my laptop, made using ASP.NET MVC4. I want a link on my website which ,upon clicking, opens the facial recognition software. Is it possible to do it? Do I have to create a setup of application and install it to do this or is there any other way?
The effort involved to do what you are asking for is almost certainly much higher than you are willing to take on. I'm only aware of two possible approaches. The first is to use the Microsoft Click-Once technology, which streams binaries through to the client. However, the binaries arrive at the client very untrusted, so you need to do quite a bit of work on the client to set up the appropriate permissions. The other approach is to associate your image recognition form with one of the safe MIME types, and then stream out a file of that MIME type. If your application is the default application for that type, it will be called to handle that file.
Dear All thanks in advance,
I need offline maps support for my desktop application developed in C# windows forms.
Once the map is loaded in the browser, it must retain the map and even if there is no net connection it has to show the navigation.
i am ready to get the license for the maps if it is possible.
please help me in finding the solution.
Directions and Navigation require a network connection. See the documentation here. You can however save a map for offline usage (search for a location -> open the info window -> save offline map). Offline maps are very limited in that it may not be available in all area and does not have other features like search. Depending on the level of information you need, maybe you can just take a screenshot of the directions and save that somewhere?
I've looked around for a file explorer in windows' phone's marketplace, and couldn't find any (i'm speaking the kind of file explorer you get on Android to well... explore your files).
Would this be because Microsoft put a restriction on such applications?
If so, would you assume they just wouldn't accept it on the marketplace, or are there native restrictions to stop it from developing and using it on your phone?
Anticipated thanks :)
There are api restrictions preventing your app from accessing everything except your local isolated storage. But there are special methods/hacks to give your app special permissions (similar to iPhone jailbreak) so that you can access file system, for example
http://www.wp7roottools.com/
But it is definitely a hack, so the answer is NO, you won't be able to implement such application and submit to the marketplace.
I am creating an app in Windows Phone which is basically an organizer for electricity bills. I want to allow the user to add images to the app along with their monthly consumption and before adding the image, show a preview of the images. How do I do this? I have already understood how to add the text part. I also want to save the image to the phone's hard drive. I've heard that I can do this using something called IsolatedStorage. Can someone please tell me how?
You didn't tell that where you get the image whether it from web or local content. Try like this in URL
http://www.windowsphonegeek.com/tips/All-about-WP7-Isolated-Storage---Read-and-Save-Images
If you want to save an image from web you have to save the image as memory stream. Let me know if you have any further doubts
I am using ASP.NET's "handler" to show images in an application. I need to play files of audio and video like I do with the image: I recover it from database and show it on an aspx page. Can I create a "handler" for the video and the audio? I don't want that a dialog box is opened asking to the user if he wants to play or save the video file.
I want to play it like YouTube does.
Maybe I can use silverlight for that.
Thank you!
It consists of two parts.
A handler or something that streams the video under the hood.
A client (can be implemented in Silverlight or Flash) that's on an standard HTML page that fetches the video from the handler and displays it.
It's certainly possible to write a handler that pulls video/audio content out of a database and streams it to the client. That would work much the same was as your existing image one.
The way to stop the dialog is to present your video within a video viewing control on the web page. For example, a silverlight control with a MediaElement in it.
Check out this guide to writing a silverlight media player: http://www.learn-silverlight-tutorial.com/StreamingMediaUsingSilverlight.cfm
This won't necessarily be the most performant way of serving video content, if you want lots of performance, look into buying commercial media streaming solution that can be integrated with your site.