TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kuldeep Katiyar
NA
29
11.9k
ImageHandler
Feb 28 2016 2:31 PM
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Response.Write("Hello World");
System.Data.DataSet dr = user.RetriveImage();
if (dr.Tables[0].Rows.Count > 0)
{
context.Response.ContentType = dr.Tables[0].Rows[0]["img"].ToString();
context.Response.BinaryWrite((byte[])dr.Tables[0].Rows[0]["img"]);
}
}
hi sir,
I have written this code to retrive image from database
in database image datatype is image and value we are saving into bytes
immidate after saving we are retrieving that image but its not displaying.
please help is any thing we have to add in web configue file i m adding but getting error
something has been added to httphandlers
Reply
Answers (
1
)
how to append excel sheet using asp.net c# ?
insert data from asp page to ms word file based on 10 pages