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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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 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?

    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
  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 9: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)

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. Replies: 3
    Last Post: Nov 06, 2009, 10:46 AM

Posting Permissions