Jpeg image loaded with Loader- loadBytes() does not display when app is deployed on remote server

I am loading a JPEG  image from the server, using the Loader->loadBytes() and that works when the app is deployed under my local Tomcat server.  When I deploy it on other servers the image is not displayed,  instead of the image I see II*
On the server side I have java, Spring, BlazeDs and I use RemoteObject on the client.
The code that loads the image looks like below:
private function imageLoadResultHandler(event:ResultEvent):void {
    var result:ArrayCollection = event.result as ArrayCollection
    var bytes : ByteArray = result.getItemAt(0) as ByteArray;
    _loader = new Loader();
    _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);
    _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loaderFaultHandler);
    _loader.loadBytes(bytes);
private function loaderCompleteHandler(event:Event):void {
    var loaderInfo:LoaderInfo = event.currentTarget as LoaderInfo;
    var img:Image = new Image();
    img.source = loaderInfo.content;
    myPanel.addChild(img);
<mx:RemoteObject id="ro" destination="imageLoadService">
     <mx:method name="loadImage" result="imageLoadResultHandler(event)" fault="faultHandler(event)" />
</mx:RemoteObject>
Any help with this problem is much appreciated.
Thank you,
Lumi Velicanu

Hi Dmitri,
Thank you for the prompt reply, your question about the jpeg content was a helpful pointer.
I solved the problem, it had nothing to do with flex, it was all on the java side. The image was obtained from converting a TIFF to a JPEG, the conversion was failing and the flex loader was receiveing a tiff and it did not know how to display it.
The java problem was kind of interesting, I'll post it here as an FYI in case anybody cares :
On my server the first writer returned by ImageIO was an instance of JPEGImageWriter and on the other servers was CLibJPEGImageWriter. And it happens that  only JPEGImageWrite can write the type of TIFF that we are having.
The fix was to iterate through all the writers and pick the instace of JPEGImageWrite, instead of the first one found.
Lumi

Similar Messages

  • I have inserted an image into my form that does not reflect when i save it a a pdf

    I have insetred an image into my form that does not reflect when i save it as a pdf - please cna you assist?

    Hi leannedatel,
    There was a possible answer to this posted previously. Try this thread for a solution:
    http://forums.adobe.com/docs/DOC-4144
    Cheers!

  • RE: my input fields does not display when running the page

    my input fields does not display when running the page
    why is that so?

    Hi,
    Can you send the HTML code for us?
    Afonso

  • After Mozilla upgraded (5 I think) my igoogle homepage does not display when I sign in.

    I upgraded to Mozilla 5, (I think, as there does not seem to be any previous versions when I check), now my personalized igoogle homepage does not display when I sign in. I need to go to options then select igoogle. All was well before. How do I reset without having to completely redo my igoogle page. I do not believe I have the 6.0 version as that is what it says I can upgrade to. I am retired and am only learning.

    Unless you have a version of iPhoto that was 9.0 or later you will not be able to download iPhoto 9.6.1 from the App Store.  To get 9.6.1 you'll need to purchase a copy of the iLife 11 disk from an online retailer like Amazon.com and then go the App Store and download 9.6.1.  Those who had an iPhoto 9.0 or later already installed have been able to get 9.6.1.  But there's been no reports from anyone who bought iLife 11 and went that route so you're at your own risk. 

  • JSP stops loading in IE and does not display in NS

    I am running several JSP pages on Tomcat 4. The pages make one query to an Oracle 8i database that returns about 70 records. I display some text from each record using a loop.
    For some reason, the page just stops loading. IE displays some of the HTML, then stops at some point and displays the underlying HTML code. NS does not load the page at all (probably since the JSP stops loading before it can reach the closing </hmtl> tag).
    I have tried flushing the cache manually. I have also tried autoflushing the cache and adjusting the cache size (all the way down to zero).
    The page was loading fine until I deleted some records from the underlying database. Then the problem started occurring. It is only on one or two pages and on no other JSP pages. Even pages with nearly identical code work fine.
    Is this some type of fluke? I have run into this error before, but somehow miracluously, the pages would start working again. I thought perhaps it was a problem with Tomcat, but I am not sure.
    Any suggestions?
    Thanks!

    For some reason, the page just stops loading. IE
    displays some of the HTML, then stops at some point
    and displays the underlying HTML code. NS does not
    load the page at all (probably since the JSP stops
    loading before it can reach the closing </hmtl> tag).In my experience, if a page does not display completely,
    or if it displays the underlying HTML, then there is probably
    something wrong in the HTML itself. The culprit is usually
    a missing ending tag or some error like an unterminated
    string.
    The easiest way to check this is to run the JSP. Then select
    "view source" from the menu and save the source code to a new
    html file. You can edit the html file and see what went wrong.

  • Video does not display when sending from Final Cut Pro to Motion

    Suddenly, when sending an audio & video sequence to Motion, a new Motion file is created, and all my layers come in properly, but the video does not display.
    The audio plays fine, and Motion clearly know that there are video tracks there, but it does not display them.
    Additionally, when rendering the Motion file back in FCP, it turns in to black video.
    I have previous sequences within the same project that were sent just fine, and are editable properly, but any new ones I try to create just come out black.
    Help, please?

    Do you have Motion mistakenly set to render out with an Alpha channel?
    Double click your Motion clip in the Timeline. Go to Modify > Composite Mode in the menu bar and set the Alpha to "None/Ignore".

  • Content does not display when page first opened

    Hi All;
    I have a contenta are/region which I have divided into multiple tabbed areas. I have two main tabs that divide the content into two major topics. Within each of these main areas I have added 4 to five tabs. One set for example holds a calendar, another tab a news release area and a third a content area for holding multiple folders of a department's documentation. The problem I am encountering is that when I first bring up the page all I see are the tabs and no matter what tab area is exposed the content within it is not displayed. For example, I start with the Calendar tab active (the calendar does not display). I then click on to say the document area, which displays all of its content's correctly. When I return to the calendar tab the calendar is displayed. My question... how can I ensure that the calendar (or any other tabbed area's content is displayed when the user first brings up the page?
    PS. This is a hot topic since I will be demoing my pages to my managers next week in an effort to convince them that Oracle Portal is the way to go.

    When I email the page to our server, the href links are missing.
    You email the page to the server?  What does that mean?
    MaureenHayslett wrote:
    I am using CS3 on Mac OS 10.6. The page previews perfectly in Safari. When I email the page to our server, the href links are missing. For example, the banner doesn't use the correct font, and the background color the the whole page is missing. Please go to http://www.crhcarchives.org/links.html
    All of the other pages on the website look correct. Thank you.
    Look at the source on that page.  There is virtually no styling on it....
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
    <style type="text/css">
    <!--
    .style16
         {font-size:14px}
    -->
    </style>
    </head>
    There is nothing telling the page which fonts to use, or which colors to use.  Are you sure you have uploaded the correct page?

  • Video icon in buddy list does not display when iChat not running?

    I have my father-in-law's computer setup to automatically log into iChat when he turns on the computer. However, it does not say he can video chat (the icon does not display) until he actually opens iChat. Is there any way around this? The only thing I thought of was to get iChat to open at login and just not display the buddy list.
    Basically, I want him to be available to video chat with his grand daughter...but he doesn't need to see the buddy list or the app for that matter. She would initiate all chats.
    Thanks
    Brian

    I am trying to imagine what you have done here.
    It is possible to have iChat as a Login Item.
    It is possible for iChat to start Up with the Buddy Lists hidden.
    From there Chats can be started from the File menu or Apple key and N together.
    To do it this way you have to know the Screen Name of who you are calling.
    You should be able to accept incoming A/V chats.
    9:46 PM Thursday; January 10, 2008

  • Notification on skpe in iphone 6 does not display when there is incoming messages

    The user has a iphone6 and installed the latest Skype. However, when there is incoming messages, the badge(red counter) does not display in the icon.I have tried everything i could, background refresh, uninstall and reinstall,, check the settings and reboot the iphone a few times etc...but the notification badge simply will not show.Can anyone advise a remedy to this?Very much appreciated.

    I used Iphone 5 till yesterday with IOS 7.2 and older version of Skype and no issues at all . I could see group chats and every single chat possible on my phone as on my laptop Now i have an Iphone 6 and the newest software and the skype application I CAN ONLY SEE PEOPLE but not group chats on my phone . I dont get notification about the group but i can easy see on my laptop that there are chats missedOnly if the person msg me away from that group I can get the msg on my phone  WHy is this happening . How can i go back to old version of Skype and should i go back to it??Do I need to downgrade the softwareIm using Skype for business on a daily basis and group chats are crucial for my work  PLEASE HELP !! 

  • Control mouseover image does not display when contained in an array of clusters.

    I have been using system booleans (with some customization) for the ability to impement mouseover animations.  For example (default system booleans):
    The mouseover feedback works well with my UI, and for the most part everything is going great.
    However, the mouseover image does not load if the the boolean is contained within an array of clusters (a single cluster with the boolean inside or an array of booleans works as expected):
    The mouseover animation does work for a single array element in the above case (the one which was most recently clicked), but this behavior isn't desirable and it seems buggy if I were to leave this on my UI as it is.
    So I guess I'm just wondering if anybody has encountered this or has any suggested workarounds?  The few that I've thought of so far (maintain a separate array for any set of system boolean controls, check coordinates myself on mouse move event and try to update the proper element in the array, avoid using mouseover animations entirely for this set of controls) aren't all that desirable.  Even though this issue could be considered cosmetic, the UI is very important to me as this code is something shipped to customers.
    This is LV 2011 by the way, so if by some chance the behavior in 2012 is correct please let me know (this alone might be reason enough to convert the project up).  If there is a CAR ID for this behavior and an NI employee wishes to share it I would also appreciate that.
    Best Regards,  
    John Passiak
    Solved!
    Go to Solution.

    Hey Jason,
    A reproducing VI would be any VI that contains an array of clusters with a system control boolean inside.  Here's an example:
    Single Boolean, Single Cluster, and Array of Booleans all show the proper mouseover image.
    Array of Clusters always shows the mouseover effect on the last element which was clicked, but does not show the mouseover effect on other array elements (actually, it seems to be inconsistent--every now and then it does show the mouseover effect on other array elements but it is not at all reliable).
    Best Regards,
    John Passiak
    Attachments:
    MouseoverTester.vi ‏9 KB

  • Image does not display when selected

    Images are not displayed on opening. Progress bar "Reading Photoshop format" runs and fnishes. Layer info is displayed at right. But the image is not shown in the work space.
    (Added) Problem occurs with PSD and DNG (ACR) file types only. JPG files open fine. DNG opens in ACR but the "Open" button has no effect. PSD does not appear at all, when selected.
    Any ideas appreciated.

    Looks like stopping/restarting PS resolved this issue, at least for the moment. I'm quite new to the Mac World, and may have pressed some wrong keys/combinations (?).

  • Siri window does not display and app was destroyed with latest 6.1 update

    This happened right after the last update to 6.1. Press the button and hold it. You get a beep but no SIRI window. Otherwise it will do as you tell it to.
    There are numerous other bugs. Go into Purchased apps. Cannot select an app on the second row left, second one down from the top. eith the one above it displays or the one below it.
    The update also destroyed an expense tracking app, Pocket expense which had a substantial amount of data in it. Press on the app icon and it flasehes and does not run.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"
    If neither of these work you may have to restore your ipad via iTunes on your computer.

  • PROMPT WITH DEFAULT VALUES DOES NOT DISPLAY VALUES THE FIRST TIME

    Hi,
    With one of our scorecard reports, when you select a division, the leader role/leader prompt picklist values do not get populated the first time. Because this is only happening in reports we have written in house, we do not see this happening to the reports that are installed as default.
    Is there any workaround known for this error.
    Thanks and Regards

    Hey can somebody please let me know how to go about this isssue ..
    Thanks

  • Workbook with changed query does not display the changes...

    Hi,
    I have a problem with a workbook with one query in - the query has been changed, but the new added keyfigures are not displayed in the existing WB.
    I know from Bex 3.5 there is the option on WB settings "return to global definitions" - I miss this functionality in BI 7.0.
    My installed sap gui is version 710
    Please let me know where I can switch on this feature...
    regards
    chris

    If you use "Return to Global Definition on refresh" option, all the users would have to have it turned on in their workbooks. In that case won't they lose any settings/navigation the user did, specific to their need. All the workbooks end up being the same in that case.
    We are still running on 30B and starting the upgrade to BI70. We just went through training on the new BEx analyzer, and I have to agree with you that some of the useful features of BEx 3X will be missed. Specially in the area of Workbook support, things like Copy query, insert query etc are missing as well.
    Thanks
    Vineet

  • Report with JDBC connection does not work when they includes CommandTable

    I am trying to render using the new version of Crystal report java component - CRJ a report contains Data base Fileds of type Command Table (Row Set) which seems to be not working.
    when i use the previes version of crystal SDK it works fine.
    after deugging the Sample CrystalHelper.java file which contains the method .changeDatasource()
    i found that the DataBaseController.setLocation() method changes the CommandTable class to Table when using it on CommandTable instance and as result all the fields defined into that CommandTable were disappear.

    That appears to be a known issue:  Eclipse JRC: To change the JDBC connection at run time
    Sincerely,
    Ted Ueda

Maybe you are looking for

  • Vista Aero on Macbook Pro

    Hello, I just installed the Vista Enterprise on my Macbook Pro 17", no problems during the installation, but I don't have the Aero effect. Did someone had the same problem? Any help apreciated. Regards

  • IShuffle out to PA system, some songs mono-ish. . .

    We are running a play with several sound cues, places where sound effects were used and using the iShuffle patched out to the Bose speakers was a great portable way to do that. We just switched to a larger place with an actual PA system and when we u

  • Fill out pdf online, then email

    We want new hires to click a link on our website where a pdf comes up. They fill out the fields in the pdf and then the pdf gets emailed to HR. It would also work if I could somehow save that filled-out pdf to the server. I could have the form submit

  • Lost catalogs after Lightroom 5.6 update

    I reluctantly updated Lightroom 5.5 to 5.6 last night and the next time I tried to reopen Lightroom my most recent catalogs were gone.  My iMac opened Lightroom with catalogs from a year ago.  All of my most recent edited catalogs are MIA.  The same

  • How to increase screen ?

    i need full screen application at run time