Skip to main content

Posts

Showing posts from May, 2010

Storing Images in SQL Server Image Datatype in ASP.NET

How to Store Images in SQL Server from an ASP.NET Page Normally there is a requirement in the dynamic web sites where the user uploads an image for a specific purpose like profile, product image etc. and it has to be saved in the database. This article discusses the step by step process of storing the image chosen in the ASP.NET Page into SQL Server Database. For this I have taken a small table called as “MyPhoto” which contains two fields having following details: 1. PhotoID                 Numeric                     Identity Column 2. Photo                     Image The image will be stored in the Photo Field which is of type Image and later on can be retrieved with the help of some another process which I will discuss in another post. Step 1. Create an interface in ASP.NET Page for the UI. I have created a same and giving a snapshot for the same. Step 2. Write down the code in the code behind of button having label “Upload Photo” : protected void Button1_Cli

LPU's Infrastructure (IT)

As requested by number of students, I am posting some details about LPU's IT infrastructure (More of hardware and network components). LPU Infrastructure PDF Hope this gives details about LPU's IT infrastructure!!!!