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
Arul Selvan
NA
26
52.1k
problem while retrive image from database
Feb 21 2011 5:45 AM
Hi i stored image in database,i use these coding for bind a image in image control,
DL.OpenConnection();
SqlDataAdapter
DataSet
da.Fill(ds);
DataRow
dr = ds.Tables[0].Rows[0];
byte
[] bytes = (
byte
[])dr[
"Category_Image"
];
Response.OutputStream.Write(bytes, 0, bytes.Length);
Response.End();
DL.CloseConnection();
this coding work correctly i already used another one application, it give output in web page
O÷öôRTZ¡Zd;§¦¥ïìçxy{™ššbhpÛ½ŒQ?3,&DCCÈ ‹lMŽcOîðñw\@ÞÝÚ†ƒ~d`]ÆÀ¸ÿÿÿ!ù,‹¸ÿÀŸpH,ȤrÉl:ŸÐ¨tJZ¯Ø¬vËíz¿à°ø˜ò) è4ZÁf›¾¸ÏÐR«Ûò~?Øõw€€)c‡G qm"igh™š™œŸ
like this binary values...
but this same coding i am used another one my web application it not give the correct output.it gives on page
System.Byte[]
what is the problem?
i used in this web application both c# and VB languages...
Reply
Answers (
3
)
about file concepts
How to write the business logic codes for an application ?...