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
hlouzek
NA
3
0
response.binarywrite issue
Mar 2 2004 2:48 PM
Hi i am trying to convert the C# equivalent of this: Response.Buffer = TRUE Response.ContentType = "image/gif" [SOME CODE] Response.BinaryWrite(Chartspace1.GetPicture ("gif", 700, 450)) Response.End what ive done is this: Response.Buffer = true; Response.ContentType = "image/gif"; [SOME CODE] Response.BinaryWrite(objCSpace.GetPicture("gif", 700, 450)); Response.End(); However I am getting this error: - The best overloaded method match for 'System.Web.HttpResponse.BinaryWrite(byte[])' has some invalid arguments - Argument '1': cannot convert from 'object' to 'byte[]' im not sure whats going on because when i do this in c#: Response.Write(objCSpace.GetPicture ("gif", 700, 450).GetType()); i get this returned: System.Byte[] Am i missing some syntax somewhere?
Reply
Answers (
1
)
formatting number of decimal places
passing information...