[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

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

    Thanks
    Mikael
    Last edited by geoffrey.mcgill; Aug 17, 2010 at 10:33 PM. Reason: [CLOSED]
  2. #2
    Vladimir Shcheglov
    Sr. Developer
  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?

    Thanks
  4. #4
    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
    Vladimir Shcheglov
    Sr. Developer
  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.

    /Mikael
    Last edited by Daniil; Dec 27, 2010 at 10:38 AM. Reason: Editted example
  6. #6
    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)
    Vladimir Shcheglov
    Sr. Developer
  7. #7
    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.

    [DirectMethod]
    public void ReloadImage()
    {
    Image1.ImageUrl = "Handler.ashx";
    winInvoice.Show();
    }
    Last edited by Daniil; Dec 27, 2010 at 10:40 AM. Reason: Please use [CODE] tags
  8. #8
    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
  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 Premium Help
    Replies: 4
    Last Post: Mar 01, 2012, 1: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, 8:21 AM
  3. [CLOSED] Load html in window to print an image.
    By stoque in forum 1.x Premium Help
    Replies: 3
    Last Post: Dec 03, 2011, 11:37 AM
  4. Add load event to Ext.net.Image
    By jchau in forum Feature Requests
    Replies: 7
    Last Post: Jul 23, 2010, 3:24 PM
  5. Replies: 3
    Last Post: Nov 06, 2009, 11:46 AM

Posting Permissions