I'm developing an Silverlight OOB application using VB, and I need to implement a method where the user select an image (.png) by an OpenFileDialog file and it saves this image in Images folder in the project, because it's not possible to set a Source to an Image that it's out of project, then I need to save it in Images folder, but I have no idea how to do this, someone helps me please!!! Here's what I did up to now:
Dim ofd As OpenFileDialog = New OpenFileDialog
ofd.Filter = "Image Files (*.png)|*.png"
ofd.FilterIndex = 1
If ofd.ShowDialog() Then
Dim imgd As String = ofd.File.DirectoryName & "\" & ofd.File.Name
Dim img As BitmapImage = New BitmapImage(New Uri(imgd))
End If