c# - wp7 - stream creating issue -


i trying make app save pictures remote host via ssh , scp , need create empty stream variable full scpclient.download(string filename, stream destination) method use later. there way that? tried:

        stream downloadstream = new memorystream();          scpclient.connect();         scpclient.download("remotefilename", downloadstream);          medialibrary locallibrary = new medialibrary();         locallibrary.savepicture("localfilename", downloadstream);          messagebox.show("success!", "result", messageboxbutton.ok); 

i getting unknown exception or app quits. maybe there way pass image throw isolatedstorage? using renci.sshnet library.

you should put code in try ... catch block

        try         {             // stuff         }         catch (exception ex)         {             messagebox.show(ex.message);         } 

then add exception details question, you'd more people in here.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -