Hi
Is it possible to load a byte array jpg image into a ext:image object?
Thanks
Mikael
Printable View
Hi
Is it possible to load a byte array jpg image into a ext:image object?
Thanks
Mikael
Hi,
Please use HttpHandler to load byte array to the image
http://stackoverflow.com/questions/4...pimage-control
http://www.aspsnippets.com/Articles/...g-ASP.Net.aspx
Thanks, this works!
But, the ext:image object does not seems to like this. When i set the AllowPan property to true, the image gets wrong dimensions and gets very small.
Any idea?
Thanks
Hi,
Can you provide the sample? If you the same static image instead image via handler then does it work correctly? If you use AllowPane="true" then you have to provide own size (fixed) for ext:Image
Its very simple, I just do this
Then the size gets wrong, If I set the image directly in the ImageUrl it works. It is when it goes via the ImageHandler that it does not. So I have to set the size manually to solve it then.Code:<ext:Image ID="imgPreview" runat="server" AllowPan="true" />
imgPreview.ImageUrl = "ImageHandler.ashx"
/Mikael
Hi,
As I mentioned before if you set AllowPan="true" then please set fixed size for the image or place the image inside layout (just image widget size must be less then real image size to allow correct pan)
Hi,
I am also using HttpHandler in my application to load images. My application works like this:
1. All the images titles are displayed in the GridPanel along with button "View".
2. When the "View" button is clicked, it must show the selected imaged in a new window.
However, when I click the "View" button once, it shows me the image but it does not change the image when I click on the next image.
I will be thankful to receive any help.
Code:[DirectMethod]
public void ReloadImage()
{
Image1.ImageUrl = "Handler.ashx";
winInvoice.Show();
}
Hi,
Please start a new thread. If you feel two threads are related, please feel free to cross link between the two.
Also please use [CODE ] tags, see
http://forums.ext.net/showthread.php...ing-New-Topics
it is possible to load jpg image to the EXT:Image, i am always using this image .net sdk to load images vb.net of various kinds of images including tiff jpeg bitmap and so on. you can load from file stream and .net graphics.
Hi @facesad,
Thank you for sharing your thoughts!