Time of loading images using the File.applicationDirectory or File.applicationStorageDirectory charger

While I try to load several images with File.applicationDirectory charger or File.applicationStorageDirectory, I found something strange.

It took about 2 times as long to load the File.applicationDirectory images of File.applicationStorageDirectory.

I googled for a long time, but I found out why.

Anyone know why?

Thank you!!

It is on Android by chance? If so, it makes sense. On Android, the assets of applicationDirectory is stored in the original format (zipped) .apk and file IO is abstract automatically for you so that you think that you access files on the file system, but that also do is extract the bytes of the first compressed content files.

Same effect can be seen when you see the copy operations slower when copying a group of individual files one at a time of File.applicationDirectory instead of copying a file zip of applicationDirectory and expanding the zip in a different directory to the place. Mentioned in this discussion:

File.copyTo (and copyToAsync) extremely slow on Android. for example 1/2 second by little XML file. Help?

Tags: Adobe AIR

Similar Questions

  • Issue while loading data using the file Rules Essbase

    Hi all

    I am facing problem while loading data using the Rules file. In the rules file, I rejected several members in two areas (two dimensions). Now if I load the data using the rules file I'm getting errors for all members in the dataload.err file. If I reject mutiple members of a single field, the data load without settling errors in the dataload.err file.

    I want to know how rmany members of several fields of ejection for loading data using the file Rules Essbase? Is it possible?

    Okay, okay... I think that you must assign Global Select / reject Boolean in the parameters of loading data as 'Or':

  • Upload images using the file API

    I am trying to download pictures using the SDK file, but my images are corrupted during the download. Anyone know the correct way to do this? Here are some of my code:

    var imgVars = getUrlVars(itemDetails['Picture']);
    
      //use image id from query string to build new filename
      var localImgFilename = '/images/equipment/used/' + imgVars['id'] + '.jpg';
      var imgProxy = 'https://[domainwithheld].com/jpg_proxy.php';
    
      //download equipment image from proxy server
      $.ajax(imgProxy, {
      'type': 'GET',
      'data': { fetch: itemDetails['Picture'] }
      }).done(function(result) {
    
    
      if(result) {
      //upload the image to BC filesystem
      var f = BCAPI.Models.FileSystem.Root.file(localImgFilename);
      var imgData = result;
    
      f.upload(imgData).done(function () {
    
      console.log("Image upload complete.");
    
      }).fail(function (jqXHR) {
      console.log("Upload failed.");
      });
      }
    
      }).fail(function() {
      console.log("Download from proxy failed.");
      });
    
    
    
    

    You were right! I finally realized that by using the method of jQuery $.ajax to retrieve the image was my problem: it doesn't have the capacity for a binary response. I got it working by simply using a native XMLHttpRequest object with the value 'blob' responseType property for the image and then passing the answer directly in the SDK download method.

    Here is an excerpt now simplified my code:

    var xhr = new XMLHttpRequest();
    xhr.onreadystatechange = function() {
    
        if ( this.readyState === 4 && this.status === 200 ) {
              var localImgFilename = '/images/equipment/used/' + imgURL.split('/').pop();
              var f = BCAPI.Models.FileSystem.Root.file(localImgFilename);
    
              f.upload(this.response).done(function () {
                   //image uploaded
              }
        }
    }
    xhr.open('GET', imgProxy + '?fetch=' + encodeURIComponent(imgURL));
    xhr.responseType = 'blob';
    xhr.send();
    
  • Can we load and unload the files in the run time?

    Can we load and unload the files in the run time?

    For example, there are four files named 'test1.h & test1.c' and another series 'test2.h & test2.c' (I have attached as an attachment to this post).

    test1.h contains the code:

    int variable; variable declared as integer

    test1.c contains the code:

    variable = 1; variable a value assigned

    test1.h contains the code:

    char * variable. variable declared as string

    test1.c contains the code:

    variable = "EXAMPLE"; a string that is assigned to variable

    So here, in this case can I dynamically load / unload first & second group files so that the same variable "variable" name can be used as an integer and string? And if so, how to do?

    Hi pa1majeti,

    You cannot simply consider that some code is loaded into memory or not: all code in a compiled application is permanently in memory unless you divide your application into DLLs that you dynamically load if necessary and remove if is no longer necessary.

    But as I understand from your description, you're better given the amount of memory occupied by the data (i.e. the contents of the variables) rather than the code. If this is the case, your only option is to allocate memory for variables dynamically and free it after it has been used. Now, even if this option is useful if you are using large networks of data, there is little or no effect on the unique variables.

    A final Council, given the huge memory installed on modern computers, are you sure you really need that extra work? I mean, the dynamic allocation of memory involves some additional precautions in programming: check the errors on each function malloc or calloc, check that the pointer is valid before each use, freeing pointers before reassignment in order to avoid memory leaks and so forth, so a balance must always be sought between the memory and the difficulty in programming.

  • Preview an image before loading it using the FileReference class in flex 3

    Preview an image before loading it using the FileReference class in flex 3?

    Hello

    The following code uses the filereference class to load the local images, it feeds each image into an arraycollection of bytearray collection. Its a filereference differenct aspects to load and display images.

    http://gumbo.flashhub.NET/pagedrop/ source included

    David.

  • some computers cannot acquire images using the PCI-1410

    I have a big problem in the acquisition of the images using the PCI-1410.

    It was a standard camera (SONY XC-ES). The test of the device is OK with my computer.

    I can not get a correct image via MAX. Also, I try to use the file of the camera for that camera.

    But it did not work properly.

    I consulted it toward the Korea of NEITHER and they discover THAT PCI-1410 worked properly with different computers.

    So, I try to change PC. Most of my computers cannot acquire the image even if the unit is OK of MAX.

    However, only a few computer works properly. (Work computers are from SAMSUNG. The other

    computers that did not work propely, were assembled in the lab.) (I have tested almost 6 computers for this purpose.)

    The problem is that there are at least 3-4 PCI ports for our applications. The work computer (SAMSUN) only has 2 ports PCI.

    What should I do to select the right computers? I can't buy dozens of computers to test the PCI-1410.

    Why is this kind of problem occurs?

    Thanks in advance for your advice. (Email: [email protected])

    Hello

    We also had a lot of problems in the past with different PCs and the problem came from the motherboard. Since that time, we only use motherboards with intel because we know that labview works very well with them.

    It was 2 or 3 years ago, and I thought that the problem has been resolved since then... you know the type of motherboards you use?

  • I would use Yuanti SC police for my web development project. However, my developer is not able to use the file .ttc I extracted from the library of fonts, and .ttf, .otf .woff formats not available anywhere on the web.

    I would use Yuanti SC police for my web development project. However, my developer is not able to use the file .ttc I extracted from the library of fonts, and .ttf, .otf .woff formats not available anywhere on the web. Please, let me know how can I use this font for my project.

    Thank you

    Anton

    Unless the site you develop is for the Asian market, I don't know why you want to use that particular font. The Basic, standard and digital alphabet punctuation glyphs has sans serif, Roman characters, but the rest is thousands of Kanji characters. While you can use the font .ttf and .otf and web fonts, it would be very unusual to use one so great. Pages should load quickly and 78 MB, with a value of faces to download for those who have connections slow Internet is not fast.

    I would take a different font without serifs. There are literally thousands who look identical or virtually identical to Yuanti.

    131 free and high quality without font serif to choose here. I'm sure you can find a desired.

  • Why Firefox tells me "another program is using the file" 1 hour after the update of Firefox, when I click on the desktop icon?

    It happened when I tried to update c. 16 to 17 as well. I had go it and download v. 18 and he told me that she had and he asked me to restart Firefox. I clicked on the "Restart Firefox" button. He closed Firefox 17. I waited an hour and no Firefox had begun. I clicked on the icon on my desktop for Firefox, and I got a window with "another program is using the file.

    The last time that happened, I had to uninstall v. 16, use Opera 12.12 to download version 17 and then installed, to have to set my preferences just a little and then I could start v. 17.

    Why update your program allows me to update, instead of downloading a new program?

    I'm on Windows XP SP3 and a very fast motherboard.

    Finally, I decided to check if my AVG antivirus or IOBit Malware Fighter software is interfering and I disabled them temporarily. I restarted and then turned off these programs and then opens Firefox. It was as usual, 17.0.1 version not updated. I went to help, on Firefox, click Find updates. Downloading updates, invited to restart Firefox, and after closing Firefox, I got the window that says that he was installing the updates, for the first time for an attempt to update to version 17 or 18. He installed the updates and restarted in fact without any problems.

    I was about to turn off all of my Add-ons for the next test. I never had to disable my AVG or IOBit before and they are the latest versions, too. AVG is the same version that allowed the update to v. 16 before. If something is different both Firefox 17 and 18, that it will not allow updates with AVG in force (or possibly IOBit Malware Fighter).

  • Problems using the file on the server

    Lately, we have difficulties to use the suite of creative cloud files. When the file is opened for some time, the software crashes. However, if the file is copied to disk local is not a problem.

    Contact support via chat, he guided me to use the file locally, because Adobe does not guarantee the functionality of the files on the server, only disk locally on the workstation.

    Anyone knows help me or have experienced this situation?

    It's just that: work locally.

    For some people indeed does the work on the server, but it's a very personal thing as there are a lot of different hardware and software solutions interfering (all the different servers and switches, and cables and their operating system). For some people, it can even run on a computer but not on the other in the same room.

  • Lots of reading messages using the file adapter

    Hello

    I write XML below in a file using the file adapter in a native format of defined type:

    < root >

    <>cycle

    string < location-tagid > < / location-tagid >

    < gwc-tagid > string < / gwc-tagid >

    < eid > XXXXXXX < / eid >

    < tags >

    < entity-id tag = "string" >

    < lastseen > string < / lastseen >

    < / tag >

    < / tags >

    < / cycle >

    < / root >

    Also, when I write this several times in a file, I get the following file:

    String | string | string

    String | string +.

    String | string | string

    String | string +.

    String | string | string

    String | string +.

    String | string | string

    String | string +.

    String | string | string

    String | string +.

    String | string | string

    String | string +.

    String | string | string

    String | string +.

    String | string | string

    String | string +.

    String | string | string

    String | string +.

    String | string | string

    String | string +.

    Now, I would return the same message in BATCHES of 10 using the File adapter. How do I do that?
    As below:

    < root >

    <>cycle

    string < location-tagid > < / location-tagid >

    < gwc-tagid > string < / gwc-tagid >

    < eid > XXXXXXX < / eid >

    < tags >

    < entity-id tag = "string" >

    < lastseen > string < / lastseen >

    < / tag >

    < / tags >

    < / cycle >

    <>cycle

    string < location-tagid > < / location-tagid >

    < gwc-tagid > string < / gwc-tagid >

    < eid > XXXXXXX < / eid >

    < tags >

    < entity-id tag = "string" >

    < lastseen > string < / lastseen >

    < / tag >

    < / tags >

    < / cycle >

    <>cycle

    string < location-tagid > < / location-tagid >

    < gwc-tagid > string < / gwc-tagid >

    < eid > XXXXXXX < / eid >

    < tags >

    < entity-id tag = "string" >

    < lastseen > string < / lastseen >

    < / tag >

    < / tags >

    < / cycle >

    <>cycle

    string < location-tagid > < / location-tagid >

    < gwc-tagid > string < / gwc-tagid >

    < eid > XXXXXXX < / eid >

    < tags >

    < entity-id tag = "string" >

    < lastseen > string < / lastseen >

    < / tag >

    < / tags >

    < / cycle >

    < / root >

    I tried the 'PublishSize' property, but it does not work. Please let me know.


    Concerning

    Have you looked into playback mode chunked in the FileAdapter.

    I used it at my current client to do a similar thing.

    Check out this blog on this topic:

    http://technology.AMIS.nl/2014/05/07/processing-large-files-through-SOA-Suite-using-synchronous-file-read/

    See you soon,.

    Robert

  • When I get an email, according to windowsmail with attachments, I can't file attachments by using the file command menu

    original title: impossible to file attachments in mail

    Hello; I'm with family Vista premium and windows mail as a messaging system. I was with IE8, and now I've migrated to IE9.

    When I get an email, under windowsmail with attachments, I can't file attachments by using the file command menu. This option is blocked. Under windows mail, I went to tools, options, security and made sure that: Let not the attachments which are unsecured... box be deselected. It makes no difference, and I still can't save attachment like this; I CAN SAVE BY CLICKING and opening the attachment and save it but it is not satisfactory that I can't save the attachment by using the file command menu.

    Can you help me please?

    IE9 is certainly the culprit and there is more questions. I know that some MVPs have contacted their MS threads about it and even received no answer.

    My guess is that MS will not address this issue. Do not forget that the development team of Windows Mail is dissolved by the MS in June 2006. (Yes, while Vista was still in beta). I seriously doubt they care.

  • How to make an image using the camera on my pc

    I want to take a picture of my laptop but cannot find the button

    Hi carolewyne

     

    1. What are the brand and model of the laptop?

    2. you have software installed for the camera to use?

     

    If you want to take a photo using the camera in the phone, then maybe you should use a utility support for the device that is provided by the manufacturer. It will help you get the image using the camera. You can visit the manufacturer's Web site and download the software for the device is functioning correctly.

     

    I hope this helps.

  • Users on the network cannot use the files after upgrade to Windows 10

    When I switch to win 10 people on the network cannot use the files on my computer

    Hello

    Thanks for posting your query on the Microsoft Community.

    With the description, I understand that you have problems with network connectivity and access files on network on your Windows 7 machine. I will certainly help you to the query.

    I would be grateful if you could help me with more information to better understand the problem and a solution:

    1 is this computer connected to a network domain or home?

    2. what exactly happens when users on the network try to use/access files on this computer? Do they get an error message/code?

    In the meantime, I suggest you refer to the below mentioned thread and check if this is useful:

    http://answers.Microsoft.com/en-us/Insider/Forum/insider_wintp-insider_web/Windows-10-network-file-sharing/18fba63e-7b6c-46FE-BA23-575a634fcee8

    Hope this information is useful. Please write us back with the required information for assistance, we will be happy to help you.

  • How can I get rid of the background yellow when I display an image using the photo viewer?

    Original title: Windows Photo Viewer

    How can I get rid of the background yellow when I display an image using the photo viewer? It gives images a yellow cast.

    Thank you

    Ed Fuller

    How can I get rid of the background yellow when I display an image using the photo viewer? It gives images a yellow cast.

    Thank you

    Ed Fuller

    Hi Ed

    See the following for the patch thread.

    Windows 7 photo viewer shows images with an orange and yellow tint:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/window-7-photo-viewer-shows-pictures-with-orange/e5d31c5e-ae84-4EBD-bbe9-9428f410560b

    Concerning

  • My windows Explorer stops working when I try to use the file menu on a file.

    My windows Explorer stops working when I try to use the file menu on a file. If a file is selected in a folder that windows Explorer will be display Windows Explorer has stopped working the message box. This occurs only if a file is already selected and you click on the file option in the menu bar. All the other menu items work well if a file is selected or not, and if no file is selected the menu file works fine. I already ran SFC/scannow from the command prompt, but it returns no violation.

    Hello

    Thanks for posting your question in the Microsoft community forum!

    I understand that you are having problems with Windows Explorer. I'll help you solve the problem. To be able to understand the question in a better way, I would like to ask you a few questions.

    (1) did you make any changes before the show?

    (2) how often does the problem occur?

    Method 1:

    Step 1: You can check if the same problem occurs in safe mode.

    Please follow the link on how to start the computer in SafeMode below.

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Step 2: Perform a clean boot.

    Put your boot system helps determine if third-party applications or startup items are causing the problem.

    How to set up Windows 7 to start in a "clean boot" State

    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    See also:

    Error: Windows Explorer has stopped working

    http://support.Microsoft.com/kb/2694911

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Note: Choose a date before that the problem occurred as your restore point while performing a system restore.

    WARNING: Perform a restore of the system can change your settings and delete your unsaved data. Do it at your own discretion.

    Please let me know the status of the issue. I will be happy to provide you with the additional options that you can use to get the problem resolved in Microsoft Windows.

Maybe you are looking for