[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 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

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