Displaying a Image from a MySQL db
-
Hello, I am trying to create a simple webpage which displays a image from a record in my mysql (v4) db. Im using asp.net c#. I found the article on this site name "Storing Images in MySQL using ASP.NET" however I am really having trouble getting the example to compile. Does anyone out there know of any other good examples or tutorials I can follow? Has anyone done this before that could give me some guidance? Thanks for your time.
-
Hello, I am trying to create a simple webpage which displays a image from a record in my mysql (v4) db. Im using asp.net c#. I found the article on this site name "Storing Images in MySQL using ASP.NET" however I am really having trouble getting the example to compile. Does anyone out there know of any other good examples or tutorials I can follow? Has anyone done this before that could give me some guidance? Thanks for your time.
Hello tmoney101, its very simple. Define a HttpHandler for drawing images, define it in your web.config file in httphandler section ... Read the image from your DB, give the right ContentType and send the image data with Response.BinaryWrite().
-
Hello tmoney101, its very simple. Define a HttpHandler for drawing images, define it in your web.config file in httphandler section ... Read the image from your DB, give the right ContentType and send the image data with Response.BinaryWrite().
Hey thanks heaps for your reply. I have started to read up on those techniques you have given me, however I am unsure if that link you gave me points to a reference webpage? When i follow the link it takes me a safe2web page that has no coding! Thanks again. tmoney101
-
Hey thanks heaps for your reply. I have started to read up on those techniques you have given me, however I am unsure if that link you gave me points to a reference webpage? When i follow the link it takes me a safe2web page that has no coding! Thanks again. tmoney101
Sorry, that was only a signatur. Here you can find samples about implementing simple IHttpHandler: http://www.codeproject.com/aspnet/domainforward.asp http://www.15seconds.com/issue/020417.htm