[CLOSED] Load byte array jpg into a Ext:Image

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Load byte array jpg into a Ext:Image

    Is it possible to load a byte array jpg image into a ext:image object?

    Last edited by geoffrey.mcgill; Aug 17, 2010 at 9:33 PM. Reason: [CLOSED]
  2. #2
  3. #3
    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?

  4. #4

    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
  5. #5
    Its very simple, I just do this

    <ext:Image ID="imgPreview" runat="server" AllowPan="true" />
    imgPreview.ImageUrl = "ImageHandler.ashx"
    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.

    Last edited by Daniil; Dec 27, 2010 at 9:38 AM. Reason: Editted example
  6. #6

    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)
  7. #7
    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.

    public void ReloadImage()
    Image1.ImageUrl = "Handler.ashx";
    Last edited by Daniil; Dec 27, 2010 at 9:40 AM. Reason: Please use [CODE] tags
  8. #8

    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
  9. #9
    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.
  10. #10
    Hi @facesad,

    Thank you for sharing your thoughts!
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Saving image in byte format
    By AnulekhaK in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 01, 2012, 12:37 PM
  2. How to read image from []byte or MemoryStream
    By qch2006qch in forum 1.x Help
    Replies: 0
    Last Post: Jan 17, 2012, 7:21 AM
  3. [CLOSED] Load html in window to print an image.
    By stoque in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 03, 2011, 10:37 AM
  4. Add load event to Ext.net.Image
    By jchau in forum Feature Requests
    Replies: 7
    Last Post: Jul 23, 2010, 2:24 PM
  5. Replies: 3
    Last Post: Nov 06, 2009, 10:46 AM

Posting Permissions