Exemplo n.º 1
0
 public Stream GetLastFile()
 {
     using (DataAcess data = new DataAcess())
     {
         // Retrieve the last taken photo.
         var file = data.GetLastFile();
         if (file != null)
         {
             MemoryStream ms = new MemoryStream(file.Data);
             return(ms);
         }
         else
         {
             return(null);
         }
     }
 }
Exemplo n.º 2
0
 public Stream GetLastFile()
 {
     using (DataAcess data = new DataAcess())
     {
         // Retrieve the last taken photo.
         var file = data.GetLastFile();
         if (file != null)
         {
             MemoryStream ms = new MemoryStream(file.Data);
             return ms;
         }
         else
         {
             return null;
         }
     }
 }