Best way to send data

Hello

It is more a question aside server, but I wanted to see what is the 'best practice' BB, and how the experts deal with this scenario.

I intend to use servlets to serve data over HTTP to my BB application.  I need to retrieve a list of images more associated with name, description, dates, etc.  Sent a picture of servlet, I know that I can just send it as a byte array and the BB it can read the http input stream.  What to send the image and data? How can we separate the bytes of the image of the data bytes. Can I send a collection of images and associated data?

What is the best way to address the issue?

Thank you

T

I would answer the question by asking "what your infrastructure server-side looks like?

If it's dot net, then you will probably want to take the path of least resistance and use JSR 172 or KSOAP.

If you have more flexibility on the server, I recommend XML or JSON (as Peter says). JSON is going to be more compact, but the BB JSON tools are a bit sparse.

On the other hand, SAX on the BB parser libraries are good enough for XML.

I would say that in every project I've ever worked, I bypassed the weaknesses of the infrastructure server, rather than the reverse.

Tags: BlackBerry Developers

Similar Questions

  • Best way to send signals between the two screws

    Hi all

    I have two screws that generate some complicated signals (sine wave, pulse, etc.). The other one takes manually entered the tension and pressure send to certain material with a pump and reads the output of the pump.

    What is the best way to send the waveform of the signal VI the VI hands-on? I still need to be able to control the signals manually in this manual control VI.

    Thank you.

    Your user interface would handle this. If you use a machine to States (hint-hint) you would simply chose the State appropriate for your current configuration. You would provide a mechanism (UI, configuration file, argument of command line to name a few) for the parameter which mode to use, and the application would have chosen the appropriate action.

  • What is the best way to send pictures to send?

    What is the best way to send a file of photos to email recipient?

    What is the best way to send a file of photos to email recipient?

    ====================================
    Two things to try...

    (1) open a new e-mail message and attach the photos.

    Or...

    Right 2) click a thumb of the photo or the name of the file and of the
    menu choose... Send to / recipient.

  • The best way to migrate data... Opinion please...

    Guys,

    I'm working on a solution for a customer who needs to move in a new SAN SAN data.

    Existing SAN is attached to the ESX server farm and is very close to the location of a new SAN. In your opinion, what is the best way to move data without interruption to VM ESX farm?

    I know we can do SAN replication, but right now, I don't know if the SAN is still the same provider.

    I know we can do Storage VMotion. In this case, he should present the new SAN somehow for the existing ESX servers.

    I know that we can probably use the converter to migrate virtual machines. This can take some time because we would go over WAN.

    What are your thoughts?

    Thanks in advance for your comments!

    With 4 TB of data, I wouldn't pass on the replication SAN or WAN solution of optimization of the property, and it can fly quickly with 4 TB of data that you use storage vmotion which basically depends on how your WAN links are, if if its quick to go for it.  There is not another free solution then this but if you can manage somehow to make backup of system state of all virtual machines, and then you can ship these backup data to remote locations and import, save back to clusters.  You have to do the actual calculation how fast you can Transfer data from the siteA-> siteB Mbps?  This will give you a clearer picture of how long it will take and picture plan here.  I could do that during maintenance or weekend windows that are the least impact to users and systems.

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!

    Kind regards

    Stefan Nguyen

    VMware vExpert 2009

    iGeek Systems Inc.

    VMware, Citrix, Microsoft Consultant

  • The best way to pass data when browsing

    By taking the case where an action method is called and he chooses navigate to another page.

    What is the best way to pass data from bean of old media to the new (probably in the execution of the action method)? I am currently using beans of spring session scope as the support of beans.

    Take a look at:

    It goes between your commandLink or commandButton control:



  • URGENT! Best way to send a large project FCPX to another editor?

    Hello

    I worked remotely on a FCPX project for a client, and now it's time to transfer so that another editor can finish editing.

    We both have the same files source on our drives.

    As I began the project my end, I have the library FCPX here with the timelines for project I want to send him via Dropbox, BUT that the total library file is 768 GB! I am able to send ONLY the timelines for project? It will be capable of to re-connect media easily its end?

    What is the best way to achieve this?

    Help, please!

    Thank you.

    You may not use the managed media when you are working. Assign an external location for your media in the library properties. Consolidate the library for media are moved out of it. Create a library of transfer where you copy the items you want to share with the other editor. Send it to them. They have a record that must match yours with the media. They reissue the multimedia content.

  • Best way to send the report

    What is the best way to edit this report in order to send it as a csv file and an html attachment using a smtp server?

    Get-VIEvent - MaxSamples ([int]: MaxValue) - start $start - finishing $finish |

    Where-Object {"VmCreatedEvent", "VmClonedEvent", "VmDeployedEvent" - contains $_.} GetType(). Name} | %{

    $evtThisNewVMEvent = $_

    Get-VM-Id $_. Vm.VM |

    Select @{N = 'The virtual computer name'; {E = {$_.name}},

    @{N = "MΘmoire (GB)"; E={$_. MemoryGB}},

    @{N = "time created"; {E = {$evtThisNewVMEvent.createdTime}}

    } | Export-csv-path "c:\vmscreated.csv" - NoTypeInformation

    You can use something similar as in Re: Emailing the results of a PowerCLI report

  • Best way to move data from one page to another within the app

    Hi all as I started to write that and was way to complicated to explain in full without a novel.

    Brief description. I use the query string that begins in the parent (from href in JSON) window must then be moved in the iframe url when moving to other pages to avoid security as a page and iframe is conflicting http and https. and are not accessible... It seems that there must be a better way.

    So my question is what is the best way in a platform open to move data from one page to another?

    You do it this way, it's in the menu.json, but when you work within the iframe and if your loading pages in applications using vairable relative URLS cross they come through.
    Discovered only this framework using the browser and you can se the construction and scope of all URLS used.

    The apps are sandboxed you cannot access aything in the parent frame, this is a feature of derliberate if something you can not do.

    As I said, you have a few methods to your own data storage space.

  • Best way to store data on local RAID

    Hi all

    Simple question for you, I'm new to vmware and I whant to be sure that what is the best way to set up my server.

    I have a proliant dl380 G5 with 5 HD SAS300G. Idon't know ask another external to associate with this server hardware.

    What is the best way to configure vmware ESXi 3.5 and my different raid for 800G of file storage and 300G the operating system image.

    I read on LUN RAW but I can't select it in my ESXi (because I have no san or because its esxi?)

    Thx for the help.

    AlX

    5 x 300 GB drives, I'd say you're having trouble to adapt to your VMs on here. If you use RAID-5, which will allow the failure of disks 1, you get 1200 MB of storage (a little less when formatted) ask for 1100 MB, but then you will need enable General newspapers and fresh VMware vswp such as snapshots. I would like to add another disk of 300 GB in this Bay RAID-5 if possible.

    If the virtual machines are intensive disk, you should consider the requirement of IOPS / s. If these are 15 k disks, the table should give you around 600IOPS - is it enough?

    Just format the local array with VMFS and use VMDK for all machines

  • simple, the best way to import data, music computers betwqeen from pc to pc to laptop

    I want to transfer music from my pc to my phone, what is the (best) easiest way?

    Based computers involved and the amount of data involved. You can transfer data using a Flash DRIVE, burn a CD/DVD-R, on the network, pulling on the hard drive and attaching it to the target machine, etc.. It is not uniform so if you want a more specific answer, provide the missing details on your systems and your data. MS - MVP - Elephant Boy computers - don't panic!

  • best way to send server objects and recreate step?

    I want to send an object and its properties (that have been manipulated) on my server. I then intend to recreate this object and automatically create a screenshot of the object (I don't want to make on the client side). I intend to use POST and some php for each property that has changed and then load data into an as3 script on the server side. I would like to than this side script server to automatically take the object and create a server image side - is anyway to do all this while asking does not have any input (of what I have learned, flash requires a prompt before saving a file)? I haven't used flex, can be used here?

    Is there a better way to do it? I am open to any suggestions!

    I misunderstood.  Yes, you will need to run your as3 swf that will load data and save an image on the server.

  • Identify the best way to transfer data between applications in Essbase

    Hello Experts,


    One of my clients uses Hyperion System 9.3.1 and they try to understand if the partitioning might be a way to automate the transfer of data between applications Essbase (using the partitioning of replication).

    The challenge, they say, is that they may need to send the budget a source application (SLVQ) data to an application (consolidated) target. Data can be changed in Conso and returned to the SLVQ for review.

    They get warnings when they define partitions in both directions because the partitions are overlapping, but it works.

    Are there concepts or reasons why they should not use this function (transfer in both directions)? Is this something that is used by other companies?

    Their alternative is to export data in text file, then reload with rule files. It seems more difficult to define (MaxL scripts-> text files-> rules of files) with more chances of getting errors. Is there some other effective solutions which we do not understand?

    Please suggest.

    Thanks in advance

    Kind regards
    Jingle

    Hi Lisa,
    other than the scores, text file
    There are two more, according to my knowledge

    1 XREF
    2 HAL (Hyperion Application Link) using adapters essbase

    We use the XREF and HAL to our company to transfer data between applications according to the needs.
    I hope this helps.

    Dornakal.
    www.dornakal.blogspot.com

  • What is the best way to send personalized mass emails using Mac Mail?

    Attempts to send mass emails (in bulk) to a custom list of customers (less than 100) with a greeting / salutation. What is the simplest and cheapest way to do it?

    The App store has a few options, but not one with a qualification or a review. Online searches are not very convincing.

    Apple is usually easy to use and easy with these small details, but it is a nightmare, and I don't see why it should be so complicated (although I'm still hoping there is an easy work around or something, outside writing each message individually).

    Any help is very appreciated!

    In all honesty I suggest that you find a good online service to do it for you...

    http://MailChimp.com

    Or one of the many others.

    These services have the ability to manage the e-mail in bulk. E-mail servers will block your messages if you seem to be spamming, there are a lot of issues to be addressed (addresses failed, bouncing mail, management of requests to subscribe / unsubscribe...). I suspect it's more trouble should manage it all yourself.

  • Best way to transfer data from a defective MacBook Pro?

    I just bought a new retina 15 "2.5 GHz Macbook Pro about 3 weeks ago and it has a faulty graphics card. I got Best Buy and they are willing to trade, but want $100 to transfer data. I'm not a techie BB have access to my data and I certainly do not think that I should pay $100 for it in any case. So I need to temporarily transfer the data on a disk external usb and contemplates what method to use, Carbon Copy Cloner or activation of Time Machine back up my hard drive. I don't have really a disk bootable since the new rMBP will have a system of fees so I don't know if CCC is the best choice, and I wonder if it is easier to migrate my data from a TM backup. Any ideas or suggestions would be welcome.

    I love the bootable clones.  They have perhaps not always necessary, but there are moments that the system does not boot and you want to try booting from the outside to either eliminate the internal drive as the question, or to repair internally by a fully-Boot installation.

    I don't use TM, nor do I need 'migrate' so I won't comment on those.

    I hope that you will buy AppleCare during this first year.  As you have seen, sometimes bad parties spend and you want 3 years of hardware coverage for these periods.

  • What is the best way to read data series high speed?

    My goal is to read 14 bytes of binary data of an instrument on the serial RS232 (460800 baud) to 2000 Hz. I didn't get a card series high speed again so I am currently using the standard serial port (115200 baud) and reading at 400 Hz I have configure the port series, empty the buffer, and then enter a while loop to read incoming data. I have a visa 14 bytes read by interation seconds 0.0025 (400 Hz). However it seems that the sensor is spewing data faster that labview can read because the bytes are accumilating in the port. After some time the buffer fills and the program fails.

    Is there a better way to do it?

    Would it not be better to read the larger quantities of data less often, for example as 1400 bytes every 0.25 seconds?

    Thank you

    Hello

    I think it would be good to read several points in a loop, and keep the loop less than 1000 Hz.  I found in the past, have something to run faster than about 10ms tends to fall down when windows loses interest in the process.  So yes, choose the slower you can get away with reading samples - for example to read every 10ms and read 20 samples every time. You should be able to configure your serial port in order to buffer the samples that I guess.

    Also and the issue of windows - if you use a loop "timed" instead of a while loop, so you can force it to an integer value including the ms.  You can also assign a dedicated processor and set the priority to 100, which means that it is less likely to elapse and decide to scan your hard drive for viruses or consult your account e-mail or what he does when he's bored with your program.  Also it "' tells you if the loop has taken longer that planned to run - you can use this to help iron out bugs etc. - report and/or to the user if you missed a few samples.

    http://zone.NI.com/reference/en-XX/help/371361H-01/Glang/timed_loop/

    JP

Maybe you are looking for

  • How can I remove about 600 events in lightning 2.6.6 double

    I imported Outlook events 2.6.6 lightning in Thunderbird 24.6.0 twice. Y at - it an easy way to remove duplicates. I wanted to delete the entire data file and start again, but could not find the file.

  • uninstalled, impossible to reinstall

    Several months ago, I had problems with Firefox, so I uninstalled to do a clean install. After you cross the full uninstall process, when my computer starts extract the download, it stops at 61% and fails. I went through the registry and files progra

  • How much does a repair of the screen?

    @TestRat, you seem to help me a lot. I was wondering how much a screen repair cost?

  • Mounting clip auto adjustment position

    Hi guys,. I have a pretty simple question, and I'm sure it'll be a simple answer. I'm not sure what I've done, but so far I could cut a clip on the timeline and the clip after that it would automatically move at the end of the one I had just trimmed.

  • check on hp309a ink levels

    How to check on HP309a printer ink levels?