can some one help me. im using visual studio.net 2005. its a web application.
i have a database with attribute name logo. so i want to upload an image and save it into the database and than display it into the image box to preview how the image looks like.
can some one please help me as i am very new in using C# codes and visual studio.net 2005
Try to google it, you can find many examples.
For a simple example , refer toSaving and Displaying Photos in SQL Server using ASP.NET
|||Check this article on MSDN:
http://support.microsoft.com/kb/326502/en-us
|||hey h|||hey hi
sorry i have this errors when i run the codes u recommended me
image.Save(Response.OutputStream,ImageFormat.Jpeg);
they say the 'System.Web.UI.WebControls.Image' does not contain a definition for 'Save'
and the other error is
image =Image.FromStream(memStream);
they say the 'System.Web.UI.WebControls.Image' does not contain a definition for 'FromStream'
Can u please help me
|||You have to importEnterprise Library 2.0 Data Access Application Block if you're following the artilceSaving and Displaying Photos in SQL Server using ASP.NET. You can take a look at the MSDN article if you want to display images without using extra classes.
No comments:
Post a Comment