adding data in DataBuffer

Hi, how can I add more data in the buffer that already has values? example:

byte[] _byte = new byte[3];
_byte[0] = 'A';
_byte[1] = 'B';
_byte[2] = 'C';

DataBuffer_buffer = new DataBuffer(_byte, 0, 3, false);

OK, here I have values 'A', 'B', 'C' in my dataBuffer. but later I want to put a few bytes out:

byte[] _secondByte = new byte[3];
_secondByte[0] = 'D';
_secondByte[1] = 'E';
_secondByte[2] = 'F';

and now, I want to add _secondByte to the _buffer, but without losing A, B, c. I want to have in my _dataBuffer A, B, C, D, E, F, values...

I tried SetData methods but they replace the data that has been asked at the beginning (A, B, C).

can anyone suggest me something?

Kind regards

DataBuffer_buffer.setPosition(DataBuffer_buffer.getLength());
DataBuffer_buffer.writeByteArray(_secondByte);

Tags: BlackBerry Developers

Similar Questions

  • Adding data to the ESX host store

    Hi all

    We are automating the process of adding data to the esx host store. We have all the necessary inputs as a host, Cluster, data center, data store name, store (VMFS) Pat data.

    Do we have the cmdlets to get the result? What is the data store should be added after the configuration of the network?

    We need confirm that the data store must be there in vcenter/Cluster?

    Please help explain the process.

    Thanks and greetings

    Riyas Hussain has

    If the LUNS on which these data warehouses are defined are zoned and correctly configured as a shared, they become automatically visible on the ESXi node.

    Do you see the LUN on different nodes of ESXi under storage adapters?

  • Lightroom stopped adding date folders to import pictures.

    Lightroom stopped adding date folders to import pictures.  The photos appear and I can put them in collections.  I checked the integrity of the catalog, and no problem.  Can anyone help? I use a Mac.

    If you must move the photos or folders that have already been imported, move them into the Lightroom folder Panel. I wouldn't bother, I would leave them right where they are, but it's me, I use keywords and metadata to find my photos and I don't really like what they are in folders.

    For imports, again, you must select the name of folder/location of appropriate folder in the Lightroom Import dialog box. There are many tutorials on this topic.

  • Adding data to an attribute of the object database

    Well, I have a little problem I am trying to add data to my bpm of a database object, but it does not add the info
    my method is:
    for each item
    SELECT cveAfectacion
    THE COMIC BOOK. ODS_VIEWER. BAN_EVENTOS_CONFIRMACION
    WHERE idSolicitud is contador
    do
    show "dentro do."
    display BAN_EVENTOS_CONFIRMACION.cveAfectacion
    solicitudCliente.tipo = BAN_EVENTOS_CONFIRMACION.cveAfectacion
    end

    Thanks for the help

    See this link: Re: adding data to an attribute of the object database

  • iTunes 12.4 - added Date - 1970

    I just bought an album (today) from iTunes.  It does not appear in my 'New' smart playlist, which is defined to contain all the music added in the last month.

    After you dig around and find the album I bought today in my library, I see that the "Date added" is January 25, 1970.

    It is a problem. Does anyone have any ideas on this?

    The ideas are highly appreciated.

    I have a question too... the same date January 25, 1970. When I went to 'Get Info' I wasn't able to fix the date.

  • adding data to a table

    Hi need help... I need to add the missing data to the table

    YY-year

    MM-month

    DD-Date

    mm-minutes

    SS-seconds

    Mmss0 of 1YYMMDD of data

    20.8. 1090828 05050
    1.2 1090829 10150
    7.2 1090901 08400

    the above table is the data where I need to insert data for data til 090831

    as below

    Mmss0 of 1YYMMDD of data

    20.8. 1090828 05050
    1.2 1090829 10150

    0 1090830 0

    0 1090831 0

    7.2 1090901 08400

    How to do this? and I need to check for each month is there data missing inbetween? Help, please

    Yes.  You need to browse your table.  The index of the current index and index + 1.  Translate the text dates, and use the date functions to determine if a date is missing.  If this isn't the case, increase the index of 1, and repeat.  If a date is missing, insert a row and setting the date of the last date + 1.  Repeat raising your index which should make the line that you just added.

  • The conversion. VOB. AVI, adding data?

    I am using Adobe Premiere Pro CS6 and try to find a solution to convert the created DVD archive, or. Disk images ISO of the DVD to an AVI wrapper for preservation purposes. I am able to import a VIDEO_TS folder into Premiere Pro, and even if I get an "unsupported file format" message, it is always important the. VOB files. I then concatenate these into a new project and export to. Uncompressed AVI, DV NTSC. The original DVD. ISO is about 3.5 GB and the result. AVI is about 15 GB. I also tried to export to a. Wrapper MOV, but I got the same result. Where is the set of these additional data coming from? I'm trying to get a flat transfer, so additional data are unacceptable to me. If the original DVD has compressed the files it contains, how to convert an uncompressed codec, Add more data? Could someone suggest a better codec for flat transfer, without adding all the data, all to also do not compress too?

    Thank you very much!

    DV is NOT "uncompressed", but the standard DV is 25mbps. DVD-video is typically compressed to 8mbps or less, so it makes sense that your conversion results in larger files. It is not a 'flat' transfer, you convert a totally different format, ranging from Long-GOP MPEG-2 for DVD to avi DV NTSC.

    If you want to check smaller files, try H.264

    Thank you

    Jeff Pulera

    Safe Harbor computers

  • Adding data to list trouble a TextArea.

    Hello

    I loaded xml data in a tile list and added the event listener to capture clicks. When I click on an item in the TileList component, I intend to add the label of the element in a TextArea. All right. Yet the problem is label element is being updated instead of added to the text box. I hope it can be fixed. Any help would be appreciated.

    Thank you

    Kristtee

    -Here is the code and xml.

    <? XML version = "1.0" encoding = "UTF-8"? >

    < lib >

    "< name of itm ="a"sos =" images/1.png "/ >

    "< name of itm ="two"sos =" images/2.png "/ >

    "< name of itm ="three"sos =" images/3.png "/ >

    "< name of itm ="four"sos =" images/4.png "/ >

    "< name of itm ="five"sos =" images/5.png "/ >

    < / lib >

    AS3 code

    -----------

    import flash.net.URLLoader;

    import flash.events.Event;

    import flash.net.URLRequest;

    var xmlData:XML;

    var path: String = "tlData.xml";

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, dataLoaded);

    Loader.Load (new URLRequest (path));

    function dataLoaded(e:Event):void {}

    System.disposeXML (xmlData);

    xmlData = new XML (e.target.data);

    for (var i: int = 0; i < xmlData.itm.length (); i ++) {}

    trace (XMLDATA. ITM[i].@name);

    myTL.addItem ({label: xmlData.itm [i]. @name, source:xmlData.itm[i].@sos});})

    }

    myTL.addEventListener (Event.CHANGE, ecHandler);

    myTL.selectedIndex = 0;

    }

    function ecHandler(event:Event):void {}

    trace (myTL.SelectedItem.Label);

    myTa.text = myTL.selectedItem.label;

    }

    It isnot clear for me what you mean when you say that the label of the element gets updated, rather than added to the text box.  Based on the code, show you the text TExtArea will be re-assigned some new value in the label is selected.

    If you want to add the text so that each label adds to the other, then try to use the appendText() method...

    myTa.appendText (myTL.selectedItem.label);

    You may or may not want to add a line ('\n') as well as return.

  • I accidentally added 'Date', 'Message-ID', "in response to" and "References" in the Notification bar and I want to delete these entries, how?

    while trying to solve another problem, it seems to me adding a: I added all these unnecessary lines in the Notification bar - I think that is what you call the Strip between the announcements of message received at the top and the message you read downstairs. I don't know how I have them here, but I don't want them! I only wish 'From' and 'To' in this bar, if it is possible - as the little "tricks" which occupies a vertical space as possible!
    Thank you!

    This sounds like you look at all the headers rather than basic ones.

    Use these settings:
    via the toolbar - Menu bar
    'View' > 'Headers' > 'Normal '.

    Via the Menu icon:
    'Icon of the menu' > 'View' > 'Headers' > 'Normal '.

  • Adding data to access DB with connectivity toolkit?

    I'm trying a new way to add data access instead of AciveX due to not knowing the commands necessary to interact with him.  Instead, I try to use the database connectivity toolkit and learn new techniques.  It is also an introduction to the variants that can ask me that question.

    Problem: Try to add data to multiple columns in the database in the same registration line.  I can add a data element to a fine column but cannot find out how to add data to multiple columns with different names.

    The approach I use is to open a new line and add the first element.  I then try to stay in the same record by using the thumb to the previous record vi but it isn't create one record for each item.  I'm sure this has to do with the way I'm configuration data tables and how to insert it vi data managing.

    The vi is attached.

    Thank you

    I don't have the data to test this, but I think you need to keep the data in a cluster, and then you should be able to add all columns at the same time without having to add each column at a time.

  • Added dates

    Hi all
    oracle version : 11.2.0.2.0
    How to perform the summation of the two dates?

    for example
    declare
    v_variable1   date := '12-Dec-2010';
    v_variable1   date := '1-Jan-2001';
    v_variable3 date;
    Begin
    --i want to perform the following operation 
    v_variable3 := (v_variable1+v_variable1) /2
    END;
    I don't know which function to use for this.

    When I play the same operation in Xls
    the output is as follows
    v_variable3: = (v_variable1 + v_variable1) = December 15, 2011 '

    Thank you
    Abhishek

    AbSHeik wrote:
    Hi all

    oracle version : 11.2.0.2.0
    

    How to perform the summation of the two dates?

    for example

    declare
    v_variable1   date := '12-Dec-2010';
    v_variable1   date := '1-Jan-2001';
    v_variable3 date;
    Begin
    --i want to perform the following operation
    v_variable3 := (v_variable1+v_variable1) /2
    END;
    

    I don't know which function to use for this.

    When I play the same operation in Xls
    the output is as follows
    v_variable3: = (v_variable1 + v_variable1) = December 15, 2011 '

    Thank you
    Abhishek

    It makes no sense to add two dates (what does this mean?).

    Even if that makes sense to hide them: this would give a difference in days.

    Now, I think you are trying to find the date, at halfway between the dates you gave so look at this as an example:

    with testdata as
     (select to_date('12-dec-2010'
                    ,'dd-mon-yyyy') d1
            ,to_date('1-jan-2001'
                    ,'dd-mon-yyyy') d2
        from dual)
    select d2 + (d1 - d2) / 2
      from testdata;
    
  • Reduction of size of the Tablespace SYSTEM or adding data file?

    Hello

    I read the MOS notes on aud$ table, etc and the purge it (truncation). But what happened in this situation. Please take a look. # Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
     ## size in MB
    TS Name                                 Total_size   Free space     %age_free    %age_free
    
    SYSTEM                               2000       409.875              20         80
    SYS@AP AS SYSDBA> select owner, segment_name, segment_type, bytes/1024/1024 "MB" from dba_segments
      2  where tablespace_name = 'SYSTEM' AND rownum <=20 AND bytes/1024/1024 > 1 order by bytes desc;
    
    OWNER                      SEGMENT_NAME                                              SEGMENT_TYPE              MB
    ------------------------------ --------------------------------------------------------------------------------- ------------------ ----------
    SYS                      OBJ$                                                   TABLE                   25
    SYS                      I_OBJ2                                                   INDEX                   22
    SYS                      I_OBJ5                                                   INDEX                   22
    SYS                      DEPENDENCY$                                              TABLE                   15
    SYS                      C_OBJ#                                                   CLUSTER              14
    SYS                      I_OBJ1                                                   INDEX                   11
    SYS                      I_OBJ4                                                   INDEX                   11
    SYS                      I_SYN2                                                   INDEX                   10
    SYS                      SYN$                                                   TABLE                    8
    # System Tablespace has a data file:
    /Oracle/oradata/AP/datafile/o1_mf_system_6l9549kc_.dbf

    What are the possibilities for me here, please? Can I purge/truncate above segments, or add a data file?

    Thank you

    Concerning

    ALTER database... datafile autoextend on next maxsize 64M

    So yes, you can change this. Easily!

    --------
    Sybrand Bakker
    Senior Oracle DBA

  • Adding data to the existing Table

    Hello..

    IAM, try to import the oracle dump file. but the tables in dump files already exist in my database. How can I add data to existing tables... pls suggest me.

    Thank you.

    You don't say what you use the tool...

    If you use the traditional import utility (imp) then you can tell him to ignore the fact that there is already a table: IGNORE = Y.

    And I can't import datapump has similar features.

  • Adding data to XML objects.

    Hello

    I wonder how to add completely new data to the XML data that I hang in a var.

    I am importing XML data in an editor that I've created.  The XML looks like this:

    < itemList_120 >

    < mediaFile order = '1' playTime = '2 ' transIn = transOut '1' = ' 9' > gif.gif < / mediaFile >
    < order = '2' playTime '1' = transIn mediaFile transOut = '6' = "8" > jpg.jpg < / mediaFile >

    < / itemList_120 >

    The code that I put in place to contain the XML data is as follows:

    var theXML:XML;
    var myXML:XMLList;

    function called when the xml file loading is complete
    function onXMLLoaded_120 (e: Event): void {}

    a new instance of the xml object
    Check = new XML (e.target.data);

    Use the object XMLList to children nodes filter thumbnails
    myXML = theXML.itemList_120;

    etc - and it works for importing the XML file - if I trace (myXML), XML data above are displayed.

    I find that you can change the different parts of the XML data in myXML in this way:

    myXML.mediaFile[1].@playTime = 2

    (which changes the second line of XML code for this: < mediaFile order = "2" "2" = transIn playTime transOut = '6' = "8" > jpg.jpg < / mediaFile >)


    My question is:

    Rather than change the existing XML data, how to add completely new data?  That is to say, if the var above who held two lines "mediaFile" of XML, how to add or insert a third?

    Thanks for taking a peek at this.

    Shaun

    check the xml class.  There are all the methods you need to add, insert, and delete nodes, attributes, etc.

  • Adding data GPS without "address"?

    I would like to add GPS data directly without going through an address.  I tried to enter the digits in various forms, but nothing seems to take.  Is it possible through PSE?

    Thank you!

    Sam

    John R Ellis reports view map PSE8 is buggy and slow.

    There is no way to enter the coordinates of longitude latitude to post-secondary studies.

Maybe you are looking for