Heyy .. Found it my self.. Posting the sol here for
further developers to know.. Here is the complete solution for selecting image from gallery using
Photochoosertask ,converting that to byte and then byte to base64 string
public void photoChooserTask_Completed(object sender, PhotoResult e)
{
if (e.TaskResult == TaskResult.OK)
{
photoStream = new MemoryStream();
e.ChosenPhoto.CopyTo(photoStream);
filename = e.OriginalFileName;
btnUpload.IsEnabled = true;
byte[] imgArray = new byte[e.ChosenPhoto.Length];
e.ChosenPhoto.Read(imgArray, 0, imgArray.Length);
BitmapImage bitmap = new BitmapImage();
bitmap.SetSource(e.ChosenPhoto);
WriteableBitmap wb = new WriteableBitmap(bitmap);
MemoryStream ms = new MemoryStream();
wb.SaveJpeg(ms, bitmap.PixelWidth, bitmap.PixelHeight, 0, 100);
byte[] imageBytes = ms.ToArray();
string strimageInBase64;
strimageInBase64 = System.Convert.ToBase64String(imageBytes);
StreamTextbox.Text = strimageInBase64;
}
}