Camera capture task - What to save to DB - Windows Phone - windows-phone-7

My question is related to Windows Phone 7.1. After the camera capture task, I get the chosen picture which is saved in Camera Roll. How do get a reference to this so that I can save the same in my DB.
I mean, in web designing we save the url for an image for retrieving it in future. What do I save here?
More Details - This is my requirement
I have some items and each item has an image. The image is caputred using camera by the user. I want to save it so that, later when user views the item, the corresponding image should be shown.

I found my answer after more research.
Got the idea from this sample code at Windows Phone Dev Center. Basic Camera Sample is the script.
Summary:
Capture the picture using the CameraTask from Microsoft.Phone.Tasks namespace
Save the Image in IsolatedStorage as a JPEG. Here we can give a filename
Retrieve the image from IsolatedStorage with the filename specified in step 2
Complete procedure is explained clearly in the same code here.

Related

Xcode allow user to input image

How would you go about allowing the user to input an image in an Xcode app on iPhone?
For example setting a profile picture, where the actual user chooses the image from their photo library (or take picture etc.)
To pick a photo, you'll need a PHPickerViewController.
This documentation page should help to understand how to use it: Selecting Photos and Videos in iOS.
The easiest way to take a picture is to present a UIImagePickerController with the sourceType of .camera.

Opening an image in TImage from a server

I am working on a huge project using Delphi XE5, the core of the program is to open an image using the TImage component on the application but the image is on a server that is accessed trough the internet. The image that displays depends on the criteria set trough other events or actions from the user. I already have the criteria's code etc in place, I only neet die Image display part..
What other components do I need to use other than TImage component to make this happen and how does one do this? I have been searching for answers for more than a week and couldn't find something that works.
This is also a multi platform application.
Found what I was looking for at FireMonkey iOS RAD Studio XE2 - Display Image on form loaded from URL although its a bit slow, but for now it can do the job just fine.
Well you can load a TBitmapImage or TJPEGImage from a stream and then stick it into your TImage. However, you will need to know the image type before you do this. Here is an example using TJPEGImage: JPEG data-stream to TImage

Image Retrieving

Im doing App with Camera in Windows Phone. Can Any one say that How can I get Image After Clicking with Camera Capture I want to Display that Image in Other Page and I like to add Some Mater About that and than I like to Save. please any One Guide Me

Windows Phone 7: How to create a picture album for depositing images from app?

I've received requests from my app's users to save images loaded by the app (comic book covers from my remote server) in the local device's picture albums so that they can set the images as lockscreen wallpaper on their device.
In Microsoft.Xna.Framework.Media.MediaLibrary, I see the SavePicture method, but it only takes an image name and the image contents as arguments. Ideally, I would like to be able to define an app-specific album and deposit the images there.
Has anyone had any luck doing this, or am I out of luck?
In the current SDK, you can only save to the Saved Pictures album or the Camera Roll album. There's no way to create your an app-specific album at the moment.

wp7 delete picture from saved pictures album

In my wp7 app, I am able to save pictures taken from a camera in the saved pictures album and able to read them later. If a particular record is deleted in the app, I want to delete the associated picture with that entity from the saved pictures album.
Has anyone tried this? I don't seem to find any methods on the media library to perform this?
Pratik
There's no API for removing the user's pictures from their device.
The phone's owner is in exclusive control of this function.
An alternative approach may work for you to keep pictures in isolated storage and offer the user the ability to optionally put them in their media library, passing control of that capability to the phone's owner as well.

Resources