Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: JNI object sending to C# without Serialization

  1. #1
    Junior Member
    Join Date
    Apr 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JNI object sending to C# without Serialization

    Looking for recommended approach on how to send an object (not structures) originating from C# to Java method via JNI without serialization and deserialization when passed back from Java JNI to C#

    Appreciate any recommendations

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: JNI object sending to C# without Serialization

    Can you send bytes and use them to reconstruct Strings and numeric data?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Apr 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JNI object sending to C# without Serialization

    Unfortunately, we are not able to break up the object in chunks or bytes. Thanks for the post and interest in this issue

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: JNI object sending to C# without Serialization

    I was talking about the fields contained in the class.
    What parts of an object are you interested in sending?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Apr 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JNI object sending to C# without Serialization

    For this particular issue we are needing to send the entire content

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: JNI object sending to C# without Serialization

    Ok, are you wanting to send the contents of all the fields? Can they be sent individually, one after the other?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Error concerning Object Serialization for i/o
    By willemjar in forum File I/O & Other I/O Streams
    Replies: 4
    Last Post: September 5th, 2013, 04:13 AM
  2. [SOLVED] Object Array Serialization Encryption
    By 0w1 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: July 14th, 2013, 05:25 PM
  3. Object Serialization how it will work?
    By ashish12169 in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: July 9th, 2013, 11:13 AM
  4. EOFException on sending object
    By treshr in forum Java Networking
    Replies: 1
    Last Post: December 9th, 2011, 01:20 PM
  5. Sending object through socket
    By Alexandrinne in forum What's Wrong With My Code?
    Replies: 4
    Last Post: November 16th, 2010, 02:18 AM

Tags for this Thread