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); } } }
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; } } }