var values = new NameValueCollection { { \"key\", ConfigurationSettings.AppSettings[\"API-Key\"].ToString() }, { \"image\", Convert.ToBase64String(File.ReadA
With the ConfigurationManager class
http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx