Flash Builder 4.5 SOAP call for images using Base64 Encoding

I am trying to load some image meta data in a flash builder mobile application by making a SOAP call to .Net service. I am able to test the web service successfully using a .Net console application. However when I make the call from flash builder mobile client I get a null result. What am I doing wrong? I am using SOAP 1.1 ByteArray didn't work for Flash builder. So converted the ByteArray to Base64 format and tried to obtain result that way. Both ways worked from a .Net Client but not working from Flash mobile.
Here is the code
<fx:Script>
        <![CDATA[          
            import mx.graphics.ImageSnapshot;
            import mx.graphics.codec.JPEGEncoder;
            import mx.graphics.codec.PNGEncoder;
            import mx.rpc.AsyncToken;
            import mx.utils.Base64Encoder;         
            import services.exifimagemetadata1.ExifImageMetaData1;         
            import spark.components.Image;     
            public var metaData:ExifImageMetaData1 = new ExifImageMetaData1();         
            public var imageBytes:ByteArray = new ByteArray();
            public var gpsData:String;
    private function getBase64EncodedImage():String
                var myEncoder:Base64Encoder = new Base64Encoder();
                myEncoder.encodeBytes(getImageBytes());            
                var image64BitText:String = myEncoder.toString();                          
                return image64BitText;
    public function GetMetaDataFromExif():void{
                var imageToken:AsyncToken = metaData.GetExifBase64Data(getBase64EncodedImage());               
                gpsData = imageToken.result.toString();
                metaResult.text = gpsData;
    protected function GetImageMetaDataFromExif(event:MouseEvent):void
                GetMetaDataFromExif();         
        ]]>
    </fx:Script>
<s:layout>
        <s:VerticalLayout>         
        </s:VerticalLayout>
    </s:layout>
    <s:HGroup>
        <s:Image id="test" width="130" height="140" source="@Embed(source='assets/p1000106.jpg')"/>
    </s:HGroup>
    <s:HGroup>
    <s:Label width="100" height="140" backgroundColor="Blue" click="GetImageMetaDataFromExif(event)">
        <s:text/>
    </s:Label>
    </s:HGroup>
    <s:HGroup>
        <s:Label id="metaResult" width="200" height="140" backgroundColor="yellow"/>           
    </s:HGroup>

Hello everyone -
Since I last posted an interesting update happened. I tested my  Flex application again, it is calling a Jetty Server that returns a JSON object, in different BROWSERS.  I disabled HTTPS for now, and the crossdomain.xml policy file is wide open for testing (ie. allowing every request to return data). So the app accessing the data using HTTP only. Browsers  -  IE, Opera, Firefox and Chrome. Each browser contained the SAME application, revision of the Flash Player (10.3.183.10 debugger for firefox, chrome, opera, safari PC; 11.0.1.129 consumer version in IE9,) take a look at the screen shot (safari not shown although the result was the same as IE and chrome)
Note that Opera and Firefox returned successful values (i.e. successful JSON objects) using the same code generated from the Data Services Wizard. Chrome, IE and, Safari failed with an Internal error. So I am left wondering - WHY? Is it something with the Flash Player? the Browsers?  the Flex SDK? Any thoughts are appreciated. Again, the code is found in the original thread above.

Similar Messages

  • Search for images using Keywords Problem.

    1) In LR4, Search for images using Keywords (click on arrow next to Keyword).
    2) Select image, export to PS6, save as Tif.
    3) Tif retains all Keywords when it appears in LR
    4) Despite that, image does not show up in the same 'Search for images using Keywords'.
    Can anyone help with this, it is frustrating me!

    V. 4.1
    Thanks, I will try, but it seems to be an inconsistent problem.
    Simon Fletcher
    Simon Fletcher Photography
    Woody's Nest
    Newton of Kinkell
    by Conon Bridge
    Ross-shire
    Scotland
    UK  IV7 8AS
    Tel: 01 349 864 830
    Web: www.simonfletcherphotography.co.uk
    Work:
    The Glass Scribe
    Tel: 01 349 867 088
    Email: [email protected]
    Web: www.glassscribe.com

  • Flash Builder 4.7 Unit Tests for Mobile Devices

    I am trying to setup a simple unit test using Flash Builder 4.7. I created a Test Suite and a Test Case class.
    Using the menu, I select Run > Run. I see options to select which Test Case / Methods I'd like to run.
    But the strange thing is, next I have to select a launch configuration. I'd assume it would just launch in some console window and give me test results. I did what I could and have it setup to run on the AIR simulator for a XOOM device. Nothing happens I just see a blank screen with a blank bar at the top.
    I've also tried right clicking the project and choosing execute flexunit tests. My FlexUnit Resulst still says 0/0.
    What is the launch configuration I need to use to execute the test cases and get the results?

    I solved it! After looking at example code on google, I realized that the s:ViewNavigatorApplication was missing two key options:
    firstView="flexunit.flexui.FlexUnitTestRunnerUIMobile"
    firstViewData="{getFirstViewData()}"
    Thankfully I was able to derive this. It makes 0 since to me why this wouldn't be added to the automatically generated mxml file but the functions it utalizes does. This to me seems like a defect. If you'd like people to use automatically generated files, make sure they are functional.
    Thanks

  • Is Flash Builder a good beginner program for creation of android app?

    Hi there,
    I'm planning to create a Android app and I'm searching for the right program to do so. I have absolutly no knowledge about programming, but happen to have Flash Builder as part of the Creative Suite CS6. As I need to learn everything from the complete beginning, I'd like to pick the best program for this purpose, so I don't learn a lot of stuff not be able to achieve the product I'd like. Let me give you a example of what I will try to achieve:
    Program for Android:
    - first page of the program would be a welcome page, it would be nice to be able to put a login and password option here, but that is not neceserry.
    - second page would be a list of 14 options - books - and by clicking on each option I would open a little book (cca 30 pages).
    - this option would be nice: let's say I open the third book and stop reading on page 10 and stop/close the program - the next time I open the program it would open the program on that very 10th page of the third book
    - this option would aslo be nice: some kind of searching modul to search keywords in the book.
    Is this kind of app possible to make in Adobe Flash Builder, or would it be better to learn another program? Thanks a lot for your experiences! Hedvertel

    If you have a licence for Master Collection you should have the info about what it contains.
    A few moments on Google took me here: http://www.ecostsoftware.com/adobe/adobe-creative-suite-cs6-master-collection-mac_p5565?gc lid=CNzN5MbKmLoCFXDJtAodWDoA3w
    The included software is listed. I don't think Muse existed when CS6 was originally released.
    I didn't properly read George's answer, but I don't see Muse as a great app builder.
    I kind of don't understand at all, why you even answer, if the only thing you are saying in this disucssion is that it's too ambitious and that I'm stupid even asking.
    Saying the project is overly-ambitious is a great answer to your question. In post 5 you clearly valued that answer enough as to be giving up on the project.
    I didn't say you were stupid asking these questions, it's more a case of asking questions you should be able to answer yourself without too much trouble.
    I still think that with your current level of understanding, takling this project with no experience of any programming or web technology is overly ambitious. Start small and build on that.
    You don't say why you want to do this particular project - whether it's about learning in general or that project in particular. If it's learning in general there's nothing to stop you - there are a ton of tutorials out there. If it's for this particular project only, I would stop now.
    You need to invest a significant amount of time to learn this stuff.
    Are you on some design course? Why do you have the master collection?

  • Flash Builder : managing multiple charts projects for one XHTML site

    Hello,
    I build several Charts that have to be integrated in some static web page.
    2 or 3 charts are integrated in the same page ...
    In Flash Builder
    - i have one project per chart
    - i must change the compilation options (option -services -locale etc) depending on wich platform i deploy (because i use an AMF Server and i have to configure the locale also) :
              - local windows machine
              - Linux pre-production server
    So it takes me a lot of time to build each project for the local host or for the pre-production one ...
    Is there a way to create a compilation profile to avoid re-typing each compilation option (like in netbeans per example) ?
    Is  there a way to build several projects at the same time ? maybe in  separate directories ? (in my case i would like to build 3 or 4 Charts  that will be available on the same HTML page even if they don't use the  same services ...)
    Thanks for your help
    Regards

    ok sorry for the mistake
    Have a nice day

  • Flash Builder : managing multiple charts pojects for one XHTML site

    Hello,
    I have to make several Charts dor a statistics site that is NOT in full flex.
    In Flash Builder
    - i have one project per chart
    - i must change the compilation options (option -services -locale etc) depending on wich platform i deploy :
              - local windows machine
              - Linux pre-production server
    So it takes me a lot of time to build each project for the local host or for the pre-production one ...
    Is there a way to create a compilation profile to avoid re-typing each compilation option (like in netbeans per example) ?
    Is there a way to build several projects at the same time ? maybe in separate directories ? (in my case i would like to build 3 or 4 Charts that will be available on the same HTML page even if they don't use the same services ...)
    Thanks for your help
    Regards

    ok sorry for the mistake
    Have a nice day

  • Using Flash Builder 4.5 to develop for Air for TV?

    How can I target Adobe Air 2.5 when using Flash Builder 4.5 so I develop for Adobe Air for TV?
    When I change the app.xml file to point to 2.5, I get the following error:
    "Namespace 2.5.0 in the application descriptor file should be equal or higher than the minimum version 2.6.0 required by Flex SDK."

    I was finally able to get my app on a Samsung TV. Here's some more info on this subject. You actually have to overlay the Air 2.6 SDK - not the 2.5 SDK.
    Also make sure when you finally package the TV app to change the application XML to point to 2.5,. During development you can leave it as 2.6.
    @see http://learn.adobe.com/wiki/display/airquestions/AIR+for+TV
    What tools do developers use to create AIR 2.5.1 apps for TVs?
    Developers can use the following tools:
    AIR 2.6 SDK
    Flash Professional CS5 Extension for AIR 2.5 (now an integral feature in Flash Professional CS5.5)
    Flash Builder 4.5
    Note: Developers can use the AIR 2.6 SDK for developing apps for AIR 2.5.1 for TV. In Flash Professional, set the publish settings to Adobe AIR 2.5. In Flash Builder, set the AIR namespace to 2.5 in the app descriptor file:
    <application xmlns="http://ns.adobe.com/air/application/2.5">.
    If you are using Flash Builder 4.5, you must do the following:
    Download the Flex 4.1.0.16076 SDK.
    Download the AIR 2.6 SDK.
    Copy each file from the AIR 2.6 SDK into the corresponding directory within the Flex 4.1 SDK, replacing the Flex original variants.
    To use this SDK within Flash Builder, select your project in the Flash Builder package explorer.
    Choose Project > Properties to open the project's Properties dialog box.
    Select Flex Compiler in the list and then click the "Configure Flex SDKs" link to open the Preferences dialog box.
    Click the Add button, browse to the SDK, and then click OK until you get back to the project's Properties dialog box.
    Click the "Use a specific SDK" option and then pick Flex 4.1 from the drop-down menu.
    You must also replace the default WindowedApplication element with Application in your project's MXML file.

  • Flash Builder and AIR 3.3 for Mac App Store

    The new AIR 3.3 will bring "Improved Mac App Store Support": http://labs.adobe.com/technologies/flashplatformruntimes/air3-3/
    But I have 2 questions:
    In what way will have be the improvement ? What do different from the past in this aspect ?
    Will be (and when) a new Flash Builder version in the configuration of the Mac App Store certificate to deploy AIR apps for the Mac Store ?
    As I can see from here: http://pigsels.com/2012/04/air-app-store-publishing-guide there is a lot of procedures to make that a new Flash Builder could automate/make the developer life easier and what will be different from the guide in the new AIR 3.3 from the AIR 3.2 about the App Store ?

    I tried this
    http://forums.adobe.com/message/1975832#1975832

  • Built app with Flash Builder 4.6 and compiled for iOS, now error when loading to appstore

    I built a fairly simple app using Flash Builder 4.6 and have successfully deployed it to the Android Market (after testing on my own Android device).  I have also taken that same app and compiled it for iOS and tested it on my own iPad. 
    I have then done the release build with the "Final Release for App Store Distribution" option in the release build wizard.  I have all the correct provisioning certificates in place and compiled the application to a .ipa file.
    At this point, using a MAC, I have run the Application Loader utility to upload my application to the itunesConnect portal to get it in the appstore.  I've already gone through the steps of entering the metadata, price scheme, and screenshots in the itunes connect portal, and just need to upload it for review.
    When I upload the .ipa file into the application loader, it gives me the following error:
    "iPhone/iPod Touch:  application executable contains unsupported architecture(s): arm"
    Anyone have any idea what this means and how I can fix it?  Any help is greatly appreciated!
    Thanks in advance!

    Solved it.  Just added the following in the <InfoAdditions> tag for iPhone in my app descriptor XML file:
      <key>UIRequiredDeviceCapabilities</key>
    <array>
    <string>wifi</string>
    <string>armv6</string>
    <string>armv7</string>
    </array>

  • Flash Builder 4.6 - Server settings for remote server

    Hi,
    im building a mobile application with PHP Application Server Type in Flash Builder 4.6.
    Everything works good from localhost, so when im debuggin on Desktop.
    Now i want export the release build, and i don't know how should change the setting:
    Web root
    Root URL
    Output folder
    in Flex Server Panel.
    Thanks

    This post explain and works!
    http://forums.adobe.com/message/4095833#4095833#4095833

  • Using papervision in flash builder and getting TypeError: Error #1009: when using object.pitch(5)

    When i use papervision in flash builder and i am doing a test, when i render a sphere using papervision with the following code it renders me the sphere.
    When i add a line sphere.pitch(2);      ||
    sphere.yaw(2);
    sphere.roll(2);
    i get the following error,
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at PvTest/onRenderTick()[D:\Android 3D\PvTest\src\PvTest.as:39]
    Can anyone help me figure out the error
    For additional Info, these are the imports i am doing:
    import org.papervision3d.objects.primitives.Sphere;
    import org.papervision3d.view.BasicView;

    I followed the steps and read some of your comments on the same top topic in another thread. When I put it on the first frame it was okay but the next button on that page had the same problem.  So what I am guessing is that I have to either create a document class or put the actions where the buttons are.  Am I understanding that correctly?  In the other thread in which you helped someone else; there was so comments about document class.  I found a tutorial on it and the way I understand it is that it you can put you actions in an external document.  But you have to include in the event listener the frame in which you want that action to happen.
    Thaks for your help.  And patience.

  • Flash Builder 4: "Flex 2 is not supported; use Flex 3.0.0 or higher "

    In our project we have to maintain an application developed in Flex 2, but we have licensed Flash Builder 4, which is now available for Adobe only. When we tried to configure Flash Builder 4 with Flex 2 SDK we get the following error: "Flex 2 is not supported; use Flex 3.0.0 or higher "
    What should we do to work with Flex 2 in Flash Builder 4?
    Thanks for the help

    In our project we have to maintain an application developed in Flex 2, but we have licensed Flash Builder 4, which is now available for Adobe only. When we tried to configure Flash Builder 4 with Flex 2 SDK we get the following error: "Flex 2 is not supported; use Flex 3.0.0 or higher "
    What should we do to work with Flex 2 in Flash Builder 4?
    Thanks for the help

  • Problem setting different width for images using HorizontalList tag

    Hi,<br />I succeeded using HorizontalList in my AdvancedDataGrid,<br /><br />  <mx:groupedColumns><br />...<br />...<br />  </mx:groupedColumns>  <br />  <mx:rendererProviders>            <br />        <mx:AdvancedDataGridRendererProvider   <br />            dataField="Actual" <br />            renderer="ChartRenderer" <br />            columnIndex="3" <br />            />         <br />    </mx:rendererProviders>  <br /><br />My Chartrenderer:<br /><br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" <br />     xmlns:local="*"><br />  <mx:Script><br />    <br />          import mx.collections.ArrayCollection;<br />          import mx.controls.Image;<br />          private var images:Array;                <br />          private var catalog:ArrayCollection;          <br />          private static var cat:Array = [<br />              "kpi_overtime_bar_10.png", "kpi_overtime_bar_20.png",<br />              "kpi_overtime_bar_30.png", "kpi_overtime_bar_40.png"<br />           ];<br />          <br />                    <br />           private function initCatalog(items:Array):void<br />           {<br />              catalog = new ArrayCollection(items);<br />              myList.dataProvider = catalog;<br />           }<br />                                     <br />      <br />    </mx:Script><br />     <mx:VBox height="20" width="40%" xmlns:mx="http://www.adobe.com/2006/mxml"<br />          horizontalScrollPolicy="off" <br />          verticalScrollPolicy="off"><br />          <mx:HorizontalList width="100%" id="myList"  <br />               horizontalScrollPolicy="off"<br />               verticalScrollPolicy="off"<br />               columnCount="4" <br />               creationComplete="initCatalog(cat)"><br />              <mx:itemRenderer><br />                    <mx:Component><br />                         <mx:Image width="50%" height="20"<br />                              maintainAspectRatio="false"/>                                <br />                    </mx:Component><br />               </mx:itemRenderer><br />          </mx:HorizontalList><br />     </mx:VBox><br /><br /></mx:Application><br /><br />This is a test I've done to see if I can palce a list of images in a cell,<br />and I can :)<br /><br />I have 2 problems:<br /><br />1. Here the size of each image is contant, I need a way to set each image in the list to be different,<br />Can I do it? <br />2. I need to load the images dynamically and not from a fixed Array,<br />Can I do it?<br /><br />It will be great to get help.....<br />Thanks<br />Jo

    On Sunday 15 Feb 2009, Yossi Bar wrote:
    > I think not all my descussion detailes were shown,
    I think you should be asking on FlexCoders...
    Tom Chiverton
    Helping to collaboratively enable 24/7 plug-and-play portals
    This email is sent for and on behalf of Halliwells LLP.
    Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the
    registered office together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.
    CONFIDENTIALITY
    This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
    For more information about Halliwells LLP visit
    www.halliwells.com.

  • Since Firefox 4, I can get a background image to work using base64 encoded, but not a local file, this worked in Firefox 3, how do I resolve this.

    Using either of the 4 examples shown below, to have a background image display inside about:blank worked in Firefox 3.x (using Stylish add-on), however since Firefox 4, only using the base64 encoded version of images works. Is there any way to fix this so I don't have to encode every image I wish to use? Encoding the image makes the stylish file absolutely huge, & a real pain to keep encoding whenever I want to change the image.
    body:empty { background: url("resource:/res/images/OnFire.jpg")
    body { background-image: url("resource:/res/images/OnFire.jpg")
    body:empty { background:url("data:
    body { background-image: url("data:
    I've also previously disabled most of the add-ons, except for Status-4-Evar, Stylish, & Firebug, in an attempt to see if something else was interfering, but no change.
    I can supply a copy of the previously working (FF 3.x) code to some of the about:blank styles if needed for testing purposes.

    Type '''about:addons'''<enter> in the address bar to open the '''Add-ons Manager.'''
    Hot key; '''<Control>''(Mac:<Command>)'' <Shift> A)'''
    On the left side of the page, select '''Plugins.'''
    Is it listed here? Select '''Disable.'''

  • Flash builder 4.7 throwing errors for no reason - is there a fix?

    Hello,
    I am using FB4.7, right now on an AS project. For some reason, FB has started "locking up" on runtime errors. Meaning, if I run a code with an error, then fix the error, FB still reports an issue at that line, even if the line is blank.
    In the attached image, you can see that I am getting a 1009 Error on the second reference to a variable that has been declared directly above - obviously a bs error.  I had a chunk of code there before, that did have the error, but I am still getting the Error, can't test, compile, etc.
    Very frustrating, no idea what is causing this!!! Thanks for any input!
    FB 4.7 Win7

    Looks like its dying on the first line of code in that method. Try checking:
    The methods parameters - perhaps compiler doesn't like TextFormat defaulting to null
       Or perhaps you're using that default null param and its biting you but misreporting the line number.
       Seems like I might have had problems in the past with params, but I think it was with assigning null to a callback function param.
          Instead I had it default to an empty class method called NullMethod, or some such.
    Other ideas, although these usually apply to compile time errors and not runtime:
    Import statements - are you missing one?
    Access modifiers - is something trying to call this method that doesn't have access?
    Check for syntax errors higher in the file.

Maybe you are looking for

  • Full ABAP Edition-Trial on Windows Vista?

    Hi All I wonder if someone has successfully installed NetWeaver 2004s ABAP Trial Version on Windows Vista. Thank you so much!!!

  • Question on Formula Creation in Numbers

    I am creating a form that involves two columns, both of which involve the same formulation. On the first I start with $200,000.00, which increases in increments of $50,000 up to $2,000,000. Is there a way to set up a stepper that would accomplish thi

  • Where to download the earliest release of 11g (11.1.0.6) ?

    where can i find all the archives of db server 11g? i want the earliest one but when i go to the oracle website, there is only the lastest released on the 10/13. I want the one without the date attached to the download file. Thanks,

  • Errors in search of candidates in e-Recruiting portal and transaction SLG1

    Hi, please need help to: 1. In e-Recruiting portal under the tab "recruiter": "Services-Candidates-Search for candidates" running "Search button" and are 3 internal error (no detail of the error). If we ignore the errors and rerun the "Search button"

  • Core Audio SDK missing from XCode 4?

    Just installed XCode 4 for Lion and I'm not seeing the ability to create an Audio Unit in the startup wizard. There's nothing to do with Core Audio available on the developer downloads page.