AspNet.StarterKits.Classifieds.BusinessLogicLayer.PhotosDB.WriteToFile C# (CSharp) Method

WriteToFile() private static method

private static WriteToFile ( string filename, byte bytes ) : void
filename string
bytes byte
return void
		private static void WriteToFile(string filename, byte[] bytes)
		{
			if (filename != null)
			{
				using (FileStream full = File.Open(filename, FileMode.Create))
				{
					full.Write(bytes, 0, bytes.Length);
					full.Flush();
				}
			}
		}