How to give an option to add image in windows phone app - c#

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

Related

Xamarin Forms, C# , WebView , Image

Hello and Good afternoon, I am stuck again. I want to access Images from the mobile device and populate it on the Xamarin form.However, It is quite easy and I have been able to do along side in asset and resource folder. Since, I am new to Mobile development, I don't know how to set the path and retrieve an image from the device memory(No clue to how it works).Could you please help me with it? The sole idea is to fetch the image from device memory(or SD card).
what you are looking for exists as a plugin which is called
Media Plugin
You can find more details about it and samples here

Opening WebP image format in Windows Phone 8 application

Is there anyway to open WebP images in windows phone applications? I have a huge set of images to be downloaded from the web and jpg/png are heavy, so looking for an image format that would reduce the data to be downloaded without compromising much on the quality.
First, I recommends you to read https://en.wikipedia.org/wiki/WebP#Criticism. Secondly, since the fact that WebP is a web standard for images, you can try using a WebBrowser as your image control.
Finally, I believe that the reason you cannot reduce the quality its because you want to use the same image as an thumbnail. I suggest you to create a process that will generate a thumbnail, something like 480px x 800px for example. Now your Windows Phone app can show a "preview" of the image, and if the user wants to see the full one, must wait.

Share images/videos from Photos Hub via my WP app

I am developing a Windows Phone 8 App. I want to add my app in the list of apps that appear when you use the ShareMediaTask. It should be possible since installing Facebook automatically adds the Facebook share to this list. So how do I register my app for this?
If this is not possible, is there a way to use FileOpenPicker() for videos??
Thanks
Sorry, there is no way to register your app to display in the Share Picker for video files.
We tried to do the same, with no success, and the same goes for photos other than JPEG files, like for example PNG.
To add a quote from the article posted by #ahandersson on "Extending the share picker for Windows Phone 8":
This topic describes how your app can appear in the share picker, a page that lets the user pick an app for sharing the photo they are viewing. Note that this extensibility is only available when the photo is a JPG file.
This http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff967563(v=vs.105).aspx should help you register your application to display in the Share Picker.

save Image in application in silverlight

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)

ASP.NET video and audio handler

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.

Categories