public PhotoServiceStreamProvider(PhotoDataContainer context) { this.context = context; // Get the physical path to the app_data directory used to store the image files. imageFilePath = HostingEnvironment.MapPath("~/App_Data/"); // Create a temp file to store the new images during POST operations. tempFile = Path.GetTempFileName(); }