Best method to transfer a file through Webworks?

Hi guys, one more Question from my side. Recently I developed a particular custom application for one of my clients, where he needed to download several files on the server (Web Service in my case). So what I did, I used the blackberry.io.read (queue) api, I read the file and then I converted it to stringData => stringData = blobtostring (fileData).

Then I send these stringData Web Service by making normal Ajax calls. All work Beeautifuuly, I can even show a progress bar in this case. But there is a problem, after a number of downloads, Simulator crashes, sometimes shows "of memory Exception", sometimes shows nothing. Now, this happens when I try to download a file of 2-3 MB more of once OR sometimes the first time. I don't know if there is a way to increase the size of the cache through webworks?

1) so my question is, is there a better way to download a file in webworks (outside what I do), so that the app crash doest cause of lack of memory at least for up to a 5 MB file?

2) if there is a better way to download a file via Java, then pls show me the way. I wouldn't mind switching to Java development for this app (I know the basics of java, so I might try).

NOTE: I have not tested the application on a real device and yet, I only tested it on 9300, 8520, 9550, 9800 simulators. The best is 9800 Simulator. Other simulators plant faster if tried to download a large file.

Hi prosares,

You still get exceptions from memory using the newest SDK (2.2)?

If you declare your variable with care, it may be possible to delete them afterwards, which could give up memory as well.

An alternative to downloading the way you mentioned is the Upload/DOwnload Extension in our Community API Repo

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry smartphones abandon the Roxio software? Is mass storage the best method for transferring multimedia files

    Should I give up on Roxio software and rely solely on the method of mass storage to transfer media files?

    I reinstalled several times the software, but whenever I try to use the Roxio Media Manager on my PC max CPU usage of on 100% and dies. Once, he worked - and as posted here by someone else, it seem very good - but each others times it just hangs.

    After reading now widely through this site and several others, it seems there are serious issues with Roxio. So my question for those of you with BB9000 more time under your belt: do I persevere with Roxio or give up and just rely on mass storage? It looks not pretty, but I moved ringtones, video and photographs around smoothly.

    Am I losing on the compression features in Roxio which I don't get mass storage? If this isn't the case, then my inclination is going to be drop Roxio and stick with mass memory until they fix the bugs or I see on this site a better way.

    Thanks to bifocals. I used the MediaSync before and Yes you are right, this works very well for the music. I was hoping to use the Roxio to transfer (and compression) files of images, photos digital high resolution of small files just for occasional display on the BlackBerry. Œuvres drag / move, but I cannot copy a lot of pictures. Not sure if it is a compression problem or if I just need a bigger memory card? I'll keep experimenting. I hope BB/Roxio will receive enough complaints sort...

    Thanks for the reply. Happy ' 09.

  • What is the best way to transfer the file to a new larger internal drive?

    I am running win 7 ultimate.  I had two hard drives of 500 GB.  C is partitioned to 120 GB (not enough) I just installed a 1.5 terabyte drive.  What is the best way to transfer my data? I would keep the 500 GB (now C: and D :) and add the 1.5 to, I also have a 2 external to that I tried to move my libraries at, but I'm confused my system.)  I don't know much about indexing or mapping.

    \

    Consider transferring all the files that are currently in the second partition of 500 GB drive that is hosting the C: drive (you have referred to as D :) on the new drive.

    Once you have done this, you can then delete the D: partition since this 1 hard drive. This would then extend the C: drive to actually use all the 500 GB drive. Finally change the drive letter for the 1.5 terabyte disk d: it in disk management ( Diskmgmt.mscRun)

    So in the end you have a 500 GB C drive and a 1.5 TB drive D.

    When it comes to move libraries Windows has a utility to do it for you. If you click on your username at the top right of the menu start all your user profile directories are displayed. If you right-click on each one and select Properties, those that support this feature will have a tab 'location '. In this tab, it displays the current location of the file, but has a button "move". You move the folder and all its files and subfolders in a new location and update the references, the system uses for this folder.

    So if you created a folder on the D drive say 'Juli-year' and you right-click on Favorites, some properties, then on location you can move this summary folder in C:\Users\username\Favourites to D:\Juli-An\Favourites. Not all folders in the user profile supports this but all the c library files and a few others.

    Of course if you did as I suggested and ended with a 500 GB C drive you may need.

  • What is the best method to transfer a virtual machine from one PC to another?

    I am a novice in VMWare workstation. I created my first SharePoint 2010 development VM, and my boss wants me to give him a copy of my SP 2010 VM. He told me to just give him the. VMX file, but I believe that there must be a better method to transfer a virtual machine from one PC to another.

    Thanks in advance.

    Coltrane.

    Coltrane,

    to transfer a virtual machine from one PC to another, shut down the virtual computer and copy the complete folder with all the files (vmx, vmdk,...) on another PC.

    A thin to keep in mind (outside the Windows license) if the virtual machine is one attached to your network, you must change the copied disk - as you would with a cloned physical system - to have a unique host name, MAC address and IP address.

    André

  • What is the best method/app to remove the old files on a late 2009 iMac?

    Want to clean and remove some old files, on which some I don't even know.  What is the best method, and or the app? I have airport time capsule as back up.

    Look at and think are the best, there is no app that comes already to know your preferences.

  • Best method to track usage of the file by the user?

    Hello world

    I currently need to look at a method for monitoring of the activities of the file in my organization and I need a little help to get started on the right track. I had some references point me to app Xcode Instrument via the business model of the file, but I currently have issues seeing any activity from users of the real network. to start, I simply set the target to "All processes" with the hope that it would bring together all activities and newspaper, in which he did for everything except users on the network. On mine, I also found some people who use scripts to dtrace or opensnoop, but I was hoping someone could point to what they think, it's the "best" method to track when a file/folder is accessed and/or modified.

    Also, as a note, we are in a mixed environment and so we only via SMB as our file sharing protocol in the case where it makes a difference. I know that in newspapers of the server application, it does clearly as AFP titles widely as I can only find small amounts of data for SMB in the newspapers (disconnects / reconnects, permissions, etc.). If I need to flesh out the details as well, this isn't a problem, and thank you to you all in advance.

    As with everything, there are a number of ways to accomplish.  Manager of the 'better' is one that works in your environment and that you feel comfortable.

    You can watch the common criteria framework that is built into OS X.  Try checking the man and man audit_control to get an idea of what is possible.  If you enable the service, you will record only login, logout, and authentication.  However, adding to the indicators you can save the file reads, writes, creates and deletes (most other things).  Are you trying to follow everything on local machines or just the server?

    Now, if you do this, you'll generate a lot of logging data.  The most logical way to handle this is to aggregate the log data into a centralized syslog server.  But it of more infrastructure and will pose challenges if you breadwinner and because portable computers that let the environment.

    Reid

    Apple Consultants Network

    'El Capitan Server - Foundation Services.

    «El Capitan Server - Collaboration & control»

    'El Capitan Server - Advanced Services '.

    : IBooks exclusively available in Apple store

  • What is the best way to transfer files from old to new computer

    I think of buying a new Imac to replace my 27 Imac K 27 5 two years old.

    What would be the best way to move my files such as e-mail, documents, music, photos, etc., with doing a complete Imac Imac transfer?

    I would like to start fresh with the OS and then reinstall all my program files, but some files to transfer.

    Any suggestion would be appreciated.

    Click on the following 2 links:

    https://support.Apple.com/en-us/HT204350 move your data to a new Mac

    A new Mac set up an ancient, its backups or PC

  • What is the best method to move from an iPhoto from one Mac to another library?

    What is the I best method for export/transfer my iPhoto on MBP to the iPhoto library library on my iMac? I prefer to keep my metadata intact; I guess that to do a package contents 'show' of my iPhoto and AirDropping the 'masters' library, I won't lose it? I'm under El Capitan 10.11.4 on Mac.

    I just want to explain my situation because maybe I'm missing something. I have SUMMER will use the photo library iCloud for synchronization on all my Apple devices and as a backup off-site. Fortunately, I realized soon as enough it would become a management NIGHTMARE. I downloaded everything from iCloud to my MBP and want to get it all on my iMac, so I can clean up the mess of duplicates and others.

    I couldn't synchronize with realism of the iCloud photo library to my iMac because I would have had to download about 150 + GB of data, so that I can download the 30 or GBs who were on my families iOS devices iCloud and the MBP. ICloud photo library interface is NOT well designed or easy to use - download directly from the cloud is heavy at best.

    All tips are appreciated, thanks.

    Simply connect the two Macs together and drag the library in the pictures of the new mac folder - or use an external hard drive to the Mac OS extended (journaled) format and drag through - then launch iPhoto on the new system

    Move the masters moves original photos and metadata exactly as they were imported without organization

    And iCloud library isn't an option for iPhoto - it requires OS X 10.10.1 and photos 1 or later version

    LN

  • What is the best way to transfer a hard drive of a computer with a motherboard dead to a new system?

    Moving an Installation of Vista

    Hi guys (and girls).

    I'm looking for the best way to transfer my computer drive "workaholic" into another machine... it's a Vista Home Premium x 86 OEM installation, but the motherboard has serious problems, so I'll pulling the reader (and its programs of many irreplaceable and owners) and transfer it into another machine. Yes, I know what are the rules regarding OEM licenses and I don't mean to skirt the rules, as I have a full VHPx86 commercial license collecting dust on the shelf that I was going to use, while I was looking for advice on the transfer:

    Should I go through the process of installation/installation (and following key change) on the original machine and transfer, then the drive in the new machine?

    Or can I move the disk to the new machine as that is, struggle with the driver updates and enter the new key when I reactivate the license?

    Thanks for any advice,

    JAM

    I suggest to install the copy retail hard disk once it's in the new computer.  It is more complicated than simply changing the product key.  You can probably use an upgrade of the repair on-site and avoid having to reinstall your programs and data.  However, you should make a backup of the image first, just in case something goes wrong.  The other option is a clean installation of the new OS and Windows Easy Transfer to move your files and settings.  It would need to reinstall your programs.  Personally, I recommend the latter.  If you go this route there are external to the file migwiz drive since you will be formatting the drive.

  • Cannot transfer a file PDF of MacBook for iPad

    I have a MacBook Pro 13 inch 2012 running on OS X El Capitan, version 10.11.6. I also have an iPad 2014 Air running on iOS, version 9.3.4. I'm trying to transfer a file PDF of the MacBook to the iPad. However, when I try to use iTunes to synchronize a selected PDF file, the following message appears:

    "Are you sure you want to remove the existing music, movies, TV shows, books and shades of the iPad and the sync with this iTunes library? Music, movies, TV shows, books and tones synchronized to [the iPad name] from other iTunes libraries will be removed and the items will be synchronized from this iTunes library. »

    Message offers two options: 'Cancel' or 'delete and synchronize.

    After having done some research on this question, I understand that the problem is that my iPad is supposed to be linked to a different iTunes library. In fact, however, my iPad has always been tied to the iTunes library. I guess that the "confusion", if you want to, is the fact that I recently changed my Apple ID because my ID original Apple gave me problems (the iPad was constantly asking me to type my password Apple ID).

    In fact, my question is this: what happens if I click on "Remove and Sync?

    All the music on my iPad will be removed and changed with all the music on my MacBook? I don't want to do. I have many, many more songs on my MacBook I do on my iPad. I don't want all these songs on my iPad, because of limited space on the iPad. (I put iTunes so that my music will not be synchronized automatically whenever I connect the iPad to the MacBook).

    Or else I'll lose only PDF files that I have on my iPad, which is replaced by PDF files I have sync with the iPad? (After all, I will ask only the Sync system in PDF format, not another thing). I wouldn't mind this scenario too, because I currently do not have that many PDFs on the iPad in any case.

    Thanks in advance for your help.

    Hello Jack,.

    Thanks for your question.  I understand you wanting to sync PDFs of your MacBook Pro to your iPad Air.  However, how you've changed your Apple ID, the computer considers that you try to synchronize your iPad to a different iTunes Library.

    If you have not backed up your iPad, I suggest you do that first.   Then, check what you want to sync on iTunes again and select "Remove and Sync."  This will replace the contents of your iPad with only the items you selected for synchronization of your iTunes library.

    Below are some resources about management of PDF files using the iBooks app.  One of these methods may be easier for you.

    Use iBooks with PDF documents on your iPhone, iPad or iPod touch

    ICloud Drive or iBooks allows access to your PDFs, books and ePub files

    Have a great day!

  • First HP: Best method to solve equations very slightly advanced...

    I always seem to struggle with trying to find a correct and reliable way to do different things with this calculator.  I've stuck with him since they were released at the beginning and I intend to continue to wear for everyday use when I finished my degree.  The problem I encounter is that there are two fairly detailed instructions published or find methods that I do not work for slightly more advanced problems than those in the manuals, etc. of the user.

    Then, I manipulated an equation until the following and I need to solve for alpha without random speculation and 40 different attempts, which is the best method to achieve this?  I tried to plug in this whole equation in the 'Solve' application in different formats, but the number it solves for is always about 0.5 to low or high, in this case I probably have a bad setting somewhere.  I also tried to solve, csolve and orders fsolve in AR but I always get some [[]] as a result.  I guess it's either a mistake or is it which indicates that there are several answers, but where do I go from here?  I was not able to find that [[]] actually means.

    Here's my equation: (sin(2*a)/(2*pi))-(a/pi)+0.75=0, where a = letter Greek alpha.)  The correct answer is 1,986 rad = 113.8 degrees.

    Please help, thanks!

    Sorry Tim, after little sleep and fees starting this morning, I realized that 1) I did not use the appropriate syntax to solve/csolve/fsolve, i.e.: I was not finishing the statement of education and that's why I was getting the [[]].  (2) I realized that when I received a response that was in degrees because I had not turned on my way to radians.  I am all set now and can find the right answer through a number of ways.  Thanks for the reply and my apologies for taking your time.

  • best way to transfer photos from the iMac on external hard drive

    best way to transfer photos from the iMac on external hard drive

    If you are mobile loose photo files, drag them in here and if you are going to be removed from the inside, keep a copy on a second disc.

    If you move an iPhoto, Aperture, or photo library, make sure that the external hard drive contains a volume to the Mac OS Extended format, drag the library there, launch the application with the key Option key, choose it, confirm that it works and if you are going to be remove from the inside, keep a copy of it on a second disc.

    (140309)

  • CRIO best method of logging

    I have an app cRIO to keep track of a timer in hours reboots. The application will almost never stop gracefully (which means that the power of the cRIO will be just unplugged). What is the best method of logging that can be used to keep the last value in a file on the cRIO without corrupting him or lose value.

    I could simply write this value in an INI file every 30 seconds or so, but I don't want to take the risk of someone unplug the cRIO at the precise moment when the file was written to (I know that the chances are slim, but I've seen it happen).

    Any help is appreciated,

    Thank you

    -ACC

    I see two options:

    1 (easy) open a new file every hour. Time stamp of the file name so that you know same between reboots when go to the next file. At least, this limits the damage caused if the system reboots during a file operation. You may even consider to always start a new file after a reboot, even if the last file has been open just a few minutes ago. This would further limit the amount of data lost or corrupted if a file is incorrect. Also, if you use the LabVIEW file IO primtives, consider using the flush after every write to ensure that all data is written to the disk.

    2 (hard) have you heard of SQLite? It is a cross-platform compatible SQL embedded database. It is quite light enough to operate comfortably on your cRIO. The main reason that I bring it to the top is that their transactions are secure and won't corrupt the database (which is really just a file) even in the case of a loss of power in the middle of the transaction.

  • How can I transfer my files from old computer with Windows XP to new computer with Windows 7 using a hard drive external?

    I have a computer with Windows XP and I just bought a computer with Windows7, can I transfer files to the new computer by using an external hard drive?  If so, how?

    Hi BarbKe

    Try to use this tool, it's called Windows easy transfer, I don't know if it works with an external hard drive or if you want to just manually, you can transfer the file using the method of copy paste...

    http://Windows.Microsoft.com/en-us/Windows7/products/features/Windows-easy-transfer

    Hope this works

  • How and what do I need to transfer video files to a Comcast DVR to my computer using Vista w/service pk 2?

    How and what do I need to transfer video files to a Comcast DVR to my computer using Vista w/service pk 2?

    Hello

    Follow the instructions to transfer video from Comcast DVR:

    1. connect your data (USB or Firewire) cable to the DVR unit.

    2. on your computer, double-click 'my computer '.

    3 scroll through the list of readers until you see a player that specifies the DVR unit.

    4. it can be labeled as a digital video recorder, or it can be labeled as a hard drive or a generic storage device.

    5 double-click on the drive DVR to open it. In a separate window on your computer, open the folder you want to transfer the files to.

    6. the files usually have a ".tr". Drag and drop the files from the RECORDER to the folder on your computer.

    Hope the above information is helpful.

Maybe you are looking for

  • I can't print properly on the web with a computer with Windows 7 64 gig; printing is fine from Internet Explorer

    My new HP computer with a 64-bit operating system use Windows 7 and internet pages do not print correctly. Printing is very small and parts of the page are SEPARATED. Printing works fine in Internet Explorer. This has happened Each time Firefox opene

  • TouchSmart 320pc: blu - ray DVD will not play!

    I could not yet play a blu - ray dvd! I asked this weeks ago... I downloaded the: vlc media player just to get my regular DVD for reading... in this program, I have to click on 'read' and when the drop down menu appears I can choose drive and my reg

  • Stop suddenly when you play

    Hi I have windows vista, I was playing a downloaded game but my laptop suddenly stop not only for this game, other games is, but not in every game that a few of them how do I stop this help me please thank you

  • Cannot link Outlook e-mail to the internet.

    While in Outlook, when I click on a link to inbedded in an e-mail, I get the following message if displayed in a window pops up: this operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrato

  • I want window 7

    I got windows 7 on my computer when I bought it.  I had a big problem, that my man tech says my 'key' would not work and installed windows 8.   I HATE windows 8 I want 7 back.  I don't have a key.  The computer was delivered, there is 7 years old.  I