File.upload on Air SDK for iOS devices failed to send http request to server.

I am trying to use ActionScript's File.upload to upload a file on Air SDK for iOS8 environment, but the File.upload does not work properly. No handler about the file upload is executed after File.upload is invoked, and no exception is caught. When I check the network traffic of the server side, I found that no http request even hit the server after File.upload is executed. The code snippet here is very simple.
  private var file:File;
  private var dir:File;
  //This method is executed to create a file and upload it when the Upload Button is pressed.
  protected function OnUploadButtonPressed(event:MouseEvent):void{
  var str:String = 'This is test';
  var imageBytes:ByteArray = new ByteArray();
  for ( var i:int = 0; i < str.length; i++ ) {
  imageBytes.writeByte( str.charCodeAt(i) );
  try{
  dir = File.applicationStorageDirectory
  var now:Date = new Date();
  var filename:String = "test" + now.seconds + now.milliseconds + ".txt";
  file = dir.resolvePath( filename );
  var stream:FileStream = new FileStream();
  stream.open( file, FileMode.WRITE );
  stream.writeBytes( imageBytes );
  stream.close();
  file.addEventListener( Event.COMPLETE, uploadComplete );
  file.addEventListener( IOErrorEvent.IO_ERROR, ioError );
  file.addEventListener( SecurityErrorEvent.SECURITY_ERROR, securityError );
  file.addEventListener(ErrorEvent.ERROR, someError);
  file.addEventListener(ProgressEvent.PROGRESS, onProgress);
  file.upload( new URLRequest("http://10.60.99.31/MyPath/fileUploadTest.do"));//This line does not work. No handler is executed. No http request hit the server side.
  } catch( e:Error ) {
  trace( e );
  //Complete Handler
  private function uploadComplete( event:Event ):void
  trace( "Upload successful." );
  //IOError handler
  private function ioError( error:IOErrorEvent ):void
  trace( "Upload failed: " + error.text );
  //SecurityError handler
  private function securityError(error:SecurityErrorEvent):void{
  trace( "Security error:" + error.text );
  //Other handler
  private function someError(error:ErrorEvent):void{
  trace("some error" + error.text);
  //Progress handler
  private function onProgress(event:ProgressEvent):void{
  trace("progressHandler");
When executed on Air Simulator, it works fine as expected, and the file is successfully uploaded to the server. But When executed on iOS devices(in my case, iPad), as I explain early, no handler about the file upload is executed, and no the http request even hit the server. So I think the problem may be in the client side. It seems that the Air SDK for iOS just failed to send the http request for some reason.
To make my problem more clear, I list my environment below:
Development Environment:  Windows7 (64bit)  / Mac os 10.9.4 (Tested on  OS platforms.)
IDE: Flash Builder 4.7
Air SDK:  3.8 / 16.0.0 (After I updated to the lastest Air SDK 16.0.0 , the problem still exists.)
Application Server:  Tomcat7 + Spring
Target OS: iOS 8
I have been struggling for this for days. So I really appreciate it if anyone has any idea about this.
Thanks in advance.

Hi bluewindice ,
As you have quoted ( ActionScript's File.upload does not work on Air SDK for iOS devices ) , this issue has been replicated at our end, and our team will be working on it.
Thanks,
Tushar

Similar Messages

  • Adobe Air SDK for IOS, i'm searching for a week  to get the certificate and provisioning files

    Adobe Air SDK for IOS, I'm searching for a week  to get the certificate and provisioning files!!
    Please help me to get the certificate and provisioning files and I should pay to have these files.
    Thanks

    Apple doesn't provide support for third-party development tools.
    You need to post in the Adobe forums.
    You need a paid developer account to install apps on an iOS device.

  • AIR Publish for iOS Error: Install application on the connected iOS device

    OK, I've been having this issue sporadically for a pretty long time now, I'm talking months if not over a year. Currently I am using Adobe Flash Pro CS 6 on a PC with Windows 8, AIR 4.0.0.1390 SDK installed. Sometimes, when publishing the App and having "Install the application on the connected iOS device" checked I receive the following error message although the iPad is connected with 2.5 GB available:
    "Error creating files.
    Uninstallation Error: Failed to send request to device.
    Device Error: please check if there is enough space on the device."
    I have found absolutely no rhyme or reason for this to occur. Sometimes it will, sometimes it won't, but I just tried publishing with install about four times, having unplugged the iPad, removed the previous App manually, closed the previously installed App, closed and reopened Flash, and it still won't install. Usually I can get it to install after a couple tries, thus dampening my urge to post a thread but I've now been driven to write due to the number of errors.
    Oddly a Google search for "Uninstallation Error: Failed to send request to device." yields no results, am I the only receiving this message?
    I keep hoping that new releases of AIR will resolve this issue but alas, no such luck. Anyone have a fix for this or able to confirm similar frustrations? I am currently using a first generation iPad, but have also experienced similar issues with third generation iPad.

    I'm also getting the error in the post above when trying to publish and install with AIR 15.0.0.302 on an iPAD 2 iOS 8.0.2:
         Error creating files.
         Uninstallation Error: APIInternalError.
         Device Error: please check if there is enough space on the device.
    - and I have 6.3GB of space, so I know that isn't the issue. I'm even attempting to compile a completely brand new (empty) fla, but the error persists. I've also tried to compile an ipa with AIR 14 and receive the same error. Possibly this has something to do with the latest iOS?

  • Embedding swf files in AIR app for ios

    Hi,
    After going through a lot of articles already available, I found answers with varying views on the following questions:-
    1) Can we embed swf files using the embed tag in air app for ios, with symbols exported ?
    Something like [Embed(source="someSWF",symbol="exportedSymbol")]
    and also something like [Embed(source="someSWF")].
    From what I understand, one can't embed swf's with actionscript byte code in them. So exporting symbols actually creates class linkages which leads to creation of abc. But I'm unsure on this because some sources say otherwise.
    2) Can we embed swf files using embed tag in air app for ios, without symbols exported ?
    Something like [Embed(source="someSWF")]
    and also something like [Embed(source="someSWF" mimeType = "application/octet-stream")]
    I read somewhere else, that you can actually embed symbols separately by providing symbol tag in embed tag but not entire swf (which leads to uncompiled actionscript error) but not sure about this as this is contradictory to finding #1.
    3) If #2 is possible, then do embedding two different swfs with same symbol names would cause a conflict and result in #3747 error ?
    Please note I am not asking about the Loader class here but using the Embed keyword for embedding swfs.
    Also do the results differ with AIRSDK 3.8 and 3.9 and using different swf-version in compiler flags ?
    In our application we started getting error #3747 in class creation of one of the embedded swfs (like new EmbeddedClass()) when we changed from swf-version 17 to 21 using AIRSDK 3.8. So was this error not there earlier or it was there but swf-version was suppressing it ?
    Any help is much appreciated.
    Thanks!

    I am fairly sure that the answer to your questions is: “no”.
    For embed to work the AIR app would have to be working in interpreter mode, and that can work for local testing, but can’t work for submitting apps. An easy change for you to do would be to use SWCs instead of Embed. Other than that you’re looking at Loader, but also a tricky command line build of the app.

  • Does the new AIR SDK support iOS 64-bit for Flex Developers?

    I saw that the new AIR SDK(December 18, 2014) has supported iOS 64-bit, but it was only supported in the new compiler. See this:
    Please note that support for creating universal IPA binaries will only be available in the new compiler. The legacy compiler is not (and will not be)
    compatible with iOS 64-bit. Because of this, it will be removed with version 16 of the AIR SDK. To ensure that Adobe as well as third party tools
    are able to work with this AIR SDK, the -useLegacyAOT option will continue to exist, but will be internally mapped to the new compiler.
    AFAIK, the Flex uses the old compiler and AIR SDK for Flex Developers doesn't include ActionScript 2.0 Compiler. As a Flex developer, what shall I do?

    Hi,
    I guess, you might be packaging IPA on windows machine.  Please try latest beta at http://labs.adobe.com/downloads/air.html which has iOS64 support on Windows machine as well.
    Thanks
    Govinda Gupta

  • Weird acting of Socket class while build for iOS device

    Hello,
    It's kind of weird and frustrating using Socket class to build package for iOS device (iPad in my case) - I do have the certificates files (P12, Provisioning) and I can build a package from FB4.5.1 too, but if I build the package as 'Fast' mode through 'Run Configuration' wizard the Socket works okay, but if I package with 'Standard' mode it never works - even I tested both the modes in same device! Any suggestions/idea - I couldn't able figure out why it's acting strange in different modes!
    Thank you.

    This is still become ridiculous - I've read in a document online that non-working socket has bug-fix with AIR 2.7, I was using 2.6 previously - so I downloaded the latest AIR 3.0 SDK and rebuild the project - yet its not working! This is ridiculous!

  • Java.lang.NullPointerException is thrown when packaging Adobe AIR application for iOS

    Hi All,
    https://bugbase.adobe.com/index.cfm?event=bug&id=3071298
    As per above link this bug resolve(latest build) but i am facing  Java.lang.NullPointerException is thrown when packaging Adobe AIR application for iOS, using the packaging tools.
    (for  inappPurchase Demo app --- i used below link code)
    http://code.google.com/p/in-app-purchase-air-ios/
    Thanks,
    Sunil Rana

    Hi Everyone,
    I'm getting basically the same error. Are there any rules or guidelines that we are suppose follow when writing an app for iOS? Is there a way to know exactly where it is crashing? My apps are not MXML, only actionscript. Also I made sure I have no errors not even warnings in my SWF file, but still no go! 
    Getting the same error.
    Exception in thread "main" java.lang.NullPointerException
            at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6944)
            at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
            at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
            at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
            at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
            at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler
    .java:472)
            at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
    Compilation failed while executing : ADT
    regards,
    Keith

  • How to integrate flash media server 4.0 live streaming for iOS devices ?

    Hi All,
    I have website which has live streaming module its working fine, same module i want to integrate for iOS devices. For live video streaming we are using FMS 4.0. So please let me know how we can integrate this for iOS devices using flash media server 4.0.
    Thanks in Adavnce
    Mohammad Sharique

    You need to place the crossdomain.xml in the webroot folder. Create a text file in the webroot folder using notepad, and call it crossdomain.xml. The text below will give you a wide open access policy, which is fine for testing.
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
              <allow-access-from domain="*" />
    </cross-domain-policy>
    For debugging HTTP streaming I recommend you get hold of something like Charles or Fiddler. These will greatly assist in pinpointing any issues.

  • F4V player for iOS devices ?

    Hi All, Is there any player to play .f4v file for iOS devices application. (We are using Flash Media Server 4.0).     Thanks In Advance Mohammad Sharique

    You need to contact the folks at the link below.
    http://www.adobe.com/aboutadobe/contact.html

  • Lag When Programming For iOS Device With Adobe Flash Professional.

    Hi, I'm trying to make an Application for iOS device, Everything is find, but when i installed it on my iphone 4 and my iPhone 4S my game start lagging, i don't what to do, i tried to simplifed the code but nothing is working i dont know if it's in the rendering or when i'm trying to export, but on my iPhone it's lagging.
    Any Help Please, Solution ?
    Thanks
    Francis

    Target gpu on the device you're testing .. you'll get much better results.
    You can do it on the xml configuration file on <renderMode> or if you're publishing in flash on the settings of renderMode select GPU.
    Also get rid as much as you can from vector graphics and use bitmaps instead.
    You can use Adobe's method of converting a vector in bitmap like this : myMC.cacheAsBitmap = true;
    And also if you're moving an object, scaling or changing it's transparency use myMC.cacheAsBitmapMatrix = new Matrix();
    These are some basic optimization tips.

  • Error coming while installing Berkeley database for IOS Device.

    Hi I want to install berkeley db in my MAC. My Xcode version is 4.5.2. I downloaded db-5.3.21(Berkeley) from oracle site.I installed command line tool for xcode. I installed berkeley db in my MAC for iPhoneSimulator. Where as for iPhone device I am unable to install. I am following below link for installing the berkeley db. http://docs.oracle.com/cd/E17076_02/html/installation/build_unix_iphone.html
    When I am installing berkeley db for IOS device it is showing following error.
    checking for arm-apple-darwin11.4.2-sh... no checking for sh... /bin/sh checking for a BSD-compatible install... /usr/bin/install -c checking for arm-apple-darwin11.4.2-cc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc checking whether the C compiler works... no configure: error: in /Users/celstra/rajaramesh/db-5.3.21/build_unix': configure: error: C compiler cannot create executables See config.log' for more details
    ............................... The error is telling that C compiler cannot create executables... But for iPhonesimulator it is not showing the error...
    Steps performed for installing Berkeley database for IOS device.
    export DEV_iOS=/Developer/Platforms/iPhoneOS.platform/Developer
    export SDK_iOS=${DEV_iOS}/SDKs/iPhoneOS6.0.sdk
    export COMPILER_iOS=${DEV_iOS}/usr/bin
    export CC=${COMPILER_iOS}/gcc
    export CXX=${COMPILER_iOS}/g++
    export CFLAGS="-arch armv6 -pipe -Os -gdwarf-2\
    -no-cpp-precomp -mthumb -isysroot $SDKROOT "
    export CXXFLAGS="-arch armv6 -pipe -Os -gdwarf-2\
    -no-cpp-precomp -mthumb -isysroot $SDKROOT "
    export CFLAGS=${LDFLAGS}
    export CXXFLAGS=${LDFLAGS}
    //export CPP=”/usr/bin/cpp ${CPPFLAGS}”
    export LD=${COMPILER_iOS}/ld
    export AR=${COMPILER_iOS}/ar
    export AS=${COMPILER_iOS}/as
    export NM=${COMPILER_iOS}/nm
    export RANLIB=${COMPILER_iOS}/ranlib
    ../dist/configure --host=arm-apple-darwin9\
    --prefix=$SDKROOT ...   
    Same steps i performed for iPHONESIMULATOR. But at that time c complier works fine. But while i am try to install for IOS device it is showing above error.
    Can we need any license software for this installation. Could any one please provide exact document regarding installation for IOS device.
    Any advice would be appreciated.
    Edited by: 1000547 on Apr 17, 2013 12:58 AM
    Edited by: 1000547 on Apr 17, 2013 1:03 AM
    Edited by: 1000547 on Apr 17, 2013 2:31 AM

    Thanks for the  reply komal i did that but not cleared..one thing when i create the build from my flash builder the error happens.but the same project i used in another flashbuilder and create build..That build works fine...is there any chance for flash builder compiler problem.
    cheers,
    venkat

  • How do I delete a file from the Adobe Reader for iOS?

    How do I delete a file from the Adobe Reader for iOS?

    Read this:
    http://forums.adobe.com/thread/1012973?tstart=0

  • Is System.gc() recognized in AIR 3 for iOS ?

    is System.gc() recognized in AIR 3 for iOS ?
    Or am I putting on a line a code that's just for pasterity ?
    I have made every effort to dispose(),null and removeEventListener any unused Object, hence to be able to tell the Garbbage Collector to "go ahead" is a really awesome feature.
    Can I confirm that this line of code work in iOS ?
    Thanks

    It's not useful if you are disposing of your objects properly.
    Cache will still ensue. Running a gc at that point can slow you down. iOS knows when it needs more memory and your dereferenced objects will be removed for you.
    Again, as long as you're cleaning up your objects properly, there is no need to manually call garbage collection. You may do 'the same thing again' and what otherwise would have already been in memory as cache would have to be reallocated, slowing you down.
    Flash Builder memory profiler will show you how it will act and if you're disposing your objects correctly. As long as you don't notice instances being generated and not removed when you thought they should have, you're fine.

  • No,I recently buy an android device which is running ver 4.0 and has flash player.So please make Adobe Flash Player for IOS devices pls!pls  .

    No,I recently buy an android device which is running ver 4.0 and has flash player.So please make Adobe Flash Player for IOS devices pls!pls  .

    You need to contact the folks at the link below.
    http://www.adobe.com/aboutadobe/contact.html

  • AIR SDK for Windows Phone 7?

    Hi
    I'd like to know if Adobe is working with Microsoft to get an AIR SDK for Windows Phone 7 so developers were able to compile ActionScipt projects into WinMo7 applications.
    Thanks

    Hi
    I'd like to know if Adobe is working with Microsoft to get an AIR SDK for Windows Phone 7 so developers were able to compile ActionScipt projects into WinMo7 applications.
    Thanks

Maybe you are looking for

  • Call Xml Publisher report from Jdeveloper

    Hi, I am first time integrating XML publisher with Jdevloper. I need to call xml publisher report from Jdeveloper. I followed all steps from anilpassi link for sample its showing error while tring to open pdf file Error: Adobe Reader could not find '

  • How to run simple query on oracle 11.2.0 ?

    hi i installed oracle 11.2.0 64bit on my Windows-7 64bit how i can connect and run any query on oracle ? what are the default tools that came with the installation and how to use it ? i sow in the forum that people write sql> select * from myTable ..

  • 10.1.3 EA: How do I get some of these new features to work?

    I've read throughthis : Oracle JDeveloper 10.1.3 EA1 New Features http://www.oracle.com/technology/products/jdev/101/collateral/101/1013eanewfeatures.html#Code%20Assist I can't figure out how to get the following to work (I've searched the help and t

  • Illustrator files soft?

    Hello Forum I'm learning my way around after effects and Illustrator CS4. Why is it that when I import .ai files into After Effects, the vectors appear soft?  somwhere along the lines the vectors seem to be converted to bitmap.  I remember back in Af

  • Scanner And Image Capture Problem

    Hello All, I thought I would start a new thread since my first one was answered.  The old thread is at:  https://discussions.apple.com/message/17757734#17757734 Well, I went a couple weeks ok with the Scanner and Image Capture.  And then kaput, it do