×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    17

    can we publish an object as byte array

    my question is can we publish an object as a byte array. if possible then what is the way.

    i have tried this thing in this way first, i have published a byte array.
    i have externalized the object and set( using api RProperty::Set()) the property as a byte array by using that externalized

    object.but while geting ( using API RProperty::Get()) in the subscriber i am not able to internalize that byte array which i

    have externalized. i am getting panic, system error -25 i.e unexpacted end of file when i am trying to internalisze the file.

  2. #2
    Registered User
    Join Date
    Sep 2007
    Posts
    17

    Re: can we publish an object as byte array

    Quote Originally Posted by mearunsingh View Post
    my question is can we publish an object as a byte array. if possible then what is the way.

    i have tried this thing in this way first, i have published a byte array.
    i have externalized the object and set( using api RProperty::Set()) the property as a byte array by using that externalized

    object.but while geting ( using API RProperty::Get()) in the subscriber i am not able to internalize that byte array which i

    have externalized. i am getting panic, system error -25 i.e unexpacted end of file when i am trying to internalisze the file.
    sorry the last line is "when i am trying to internalisze the object"
    instead of "when i am trying to internalisze the file"

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: can we publish an object as byte array

    Value (T) types can be "TDes8-ized" via TPckg/Buf types.
    For complex object-hierarchies you can use streaming (and implement ExternalizeL-InternalizeL methods) into a CBuf* or directly to the memory.

Similar Threads

  1. Converting image object into byte array
    By kamalinfo2k2@yahoo.com in forum Mobile Java General
    Replies: 7
    Last Post: 2011-02-26, 10:57
  2. Preventing write-access to NFC tag
    By Jazz66 in forum Near Field Communication
    Replies: 4
    Last Post: 2009-06-25, 11:11
  3. what is an APDU
    By pawangjain in forum Near Field Communication
    Replies: 0
    Last Post: 2007-07-02, 07:42
  4. Reading from Image Object to a Byte Array
    By Ghouse in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2003-06-13, 18:02
  5. Loading images from byte array on 6130i
    By enlightment in forum Mobile Java General
    Replies: 2
    Last Post: 2002-06-05, 19:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×