Kayıtlar

handler etiketine sahip yayınlar gösteriliyor

Generic Handler dosyasında routedata değerini yakalamak istersek

Ayrıntılı bilgi için tıklayın

Eğer resimleri veritabanından okuyorsanız belki ihtiyacınız olabilir

Resimleri veritabanından asp.net'te handler dosyaları ile istediğiniz formata çevirebilrisiniz. Ancak bazen flash dosyaları bu handler dosyalarını çözümleyemez, sorunu çözmek için resim dosyalarını sunucuda fizikselde tutmak isteyebilirsiniz string localFilename = @"c:\localpath\tofile.jpg"; using(WebClient client = new WebClient()) { client.DownloadFile("http://www.example.com/image.jpg", localFilename); } Eğer dosyanınızın hala orda olup olmadığını veya güncellediğini bilmek isterseniz bu yöntemide uygulayabilirsiniz private static void DownloadRemoteImageFile(string uri, string fileName) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); // Check that the remote file was found. The ContentType // check is performed since a request for a non-existent // image file might be redirected to a 404-page, which would // yield the Status...