public string GetAttachment(int attID, bool isPicture, out Bitmap bitmap, out string errorMessage) { bitmap = null; string result = string.Empty ; errorMessage = string.Empty; TDSettings.ConnectionRow connection = MyZillaSettingsDataSet.GetInstance().GetConnectionById(_connectionId); string url = String.Concat(connection.URL, ATTACHMENT_PAGE, attID); MyZilla.BL.Utils.HttpHelper httpDialog = new HttpHelper(_connectionId, connection.Charset); if (isPicture) { bitmap = httpDialog.GetPictureFromUrl(url, false); } else { string getResult = httpDialog.GetFromUrl(url, false); if (result.ToLower().IndexOf("error") >= 0) { errorMessage = getResult; } else { result = getResult; } } return result; }