I making WebCam Image to Server Upload
I try to Upload part using Rad Upload Control only
Process
View WebCam -> Capture -> Send Image -> End
But, i can't direct IsolatedStorage file access
this is my source
_isf = IsolatedStorageFile.GetUserStoreForApplication();
void _capture_CaptureImageCompleted(object sender, CaptureImageCompletedEventArgs e)
{
//이미지 저장이 완료되면 여기로
WriteableBitmap wb = e.Result;
//화면에 촬영된 이미지 보여주기
if (_capture != null)
{
_capture.Stop();
ImageBrush image = new ImageBrush();
image.ImageSource = wb;
rectVideo.Fill = image;
}
string name = Guid.NewGuid().ToString() + ".jpg";
using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(name, FileMode.CreateNew, _isf))
{
MemoryStream stream = new MemoryStream();
//IDAppPublic에 있는 확장메소드 사용
wb.EncodeJpeg(stream);
stream.CopyTo(isfs);
isfs.Close();
//저장완료 후 서버에 올리고 화면닫고 사진찍은거 보여주고
if (RadUpload1 != null)
{
//how can i do add isfs to RadUpload1 control?
}
}
}