c# - Stream to byte array conversion -


i have selected image stream , want convert byte. how can that?

void photochoosertask_completed(object sender, photoresult e) {     if (e.taskresult == taskresult.ok)     {         messagebox.show(e.chosenphoto.length.tostring());  var image = new bitmapimage();             image.setsource(e.chosenphoto);  /// ????           //code display photo on page in image control named myimage.         //system.windows.media.imaging.bitmapimage bmp = new system.windows.media.imaging.bitmapimage();         //bmp.setsource(e.chosenphoto);         //myimage.source = bmp;     } } 


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -