hi, I tried that and this created the same type of error as my last post suggest when i replace the
get
{
image = GetImage();
return image;
}
with
get
{
FileStream stream = File.OpenRead(@"c:\BK2.jpg");
WebOperationContext.Current.OutgoingResponse.ContentType = "image/jpeg";
return stream as Stream;
}
I believe wat you suggest and what i have written above create the same situation. I have tried both the codes and now I am not able to see any output in the internet explorer. It says "internet Explorer cannot display the page" and therefore i opened Fiddler and wanted to verify . Fiddler gave me a response
Http 307 as the result which i found out as a redirection error.
I am lost. I thought my code was a simple one to merely display an image from the hard disk on the webpage.
snehitn
Member
1 Points
8 Posts
Re: Image Handling using REST starter kit
Oct 12, 2009 06:59 PM|LINK
hi, I tried that and this created the same type of error as my last post suggest when i replace the
with
get { FileStream stream = File.OpenRead(@"c:\BK2.jpg"); WebOperationContext.Current.OutgoingResponse.ContentType = "image/jpeg"; return stream as Stream; }I believe wat you suggest and what i have written above create the same situation. I have tried both the codes and now I am not able to see any output in the internet explorer. It says "internet Explorer cannot display the page" and therefore i opened Fiddler and wanted to verify . Fiddler gave me a response
Http 307 as the result which i found out as a redirection error.
I am lost. I thought my code was a simple one to merely display an image from the hard disk on the webpage.
Any Help would be sincerely appreciated.