How to save Grid Image in xaml to media library?

Hey I assume the Image source will be set at some time in your code? :winktongue:

Take a look at this,.. there you see how an image is loaded from the isolated storage and saved to the medialibrary using the MediaLibrary.SavePicture method.

You need to build up a filestream or byte array before saving it to the media library.

If you need any help, let me know but then I do need more of your code
 
Hey I assume the Image source will be set at some time in your code? :winktongue:

Take a look at this,.. there you see how an image is loaded from the isolated storage and saved to the medialibrary using the MediaLibrary.SavePicture method.

You need to build up a filestream or byte array before saving it to the media library.

If you need any help, let me know but then I do need more of your code

Here my example:

<Image x:Name="myPictures" Source ="/Images/green.jpg"/>


pprivate void saveButton_Click(object sender EventArgs e)
{
//code to save original image to library
}
 

Forum statistics

Threads
342,917
Messages
2,265,996
Members
428,886
Latest member
Kelemvor