tags:

views:

132

answers:

2

Hi to All,

I have the code which returns image from function by taking input parameter as a byte array. How to catch that image & show it on aspx page with asp control. ASP control have imageurl property & not have image property.

Please reply....

Regards, Girish

A: 

You can either write image byte directly into response stream - this can be done when image is downloaded - or you have to save it in some location that can be accessed by your application, then generate virtual path for it's physical path and provide url for page control.

terR0Q
A: 

you need to make seperate page name like showImage.aspx, put this code there.

Response.ContentType = "fileextnsion";
Response.BinaryWrite(dtblImage[0].ImageData);// your byte array

then where you want to show image set imageURL to that page.

Muhammad Akhtar