Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8075047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:51:40+00:00 2026-06-05T14:51:40+00:00

Supose I have a WCF service which sends List serialized with protobuf-net. That function

  • 0

Supose I have a WCF service which sends List serialized with protobuf-net. That function returns byte[], application/octet-stream.

Now, in my java application I have compiled MyClass.proto into MyClass.java and get from http the data sent before.

To deserialize 1 object I shall use

MyClass MyObject = MyClass.parseFrom(http_input_stream);

But what shall I use if an array comes…?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:51:42+00:00Added an answer on June 5, 2026 at 2:51 pm

    A List<MyClass> is actually serialized as a sequence of MyClass objects, each with a standard field-header of 1. I don’t know the java API backwards: if it has a “read a sequence of items” API then: use that. However, a trusty fallback is the following, entirely compatible “.proto” fragment:

    message Foo {
        repeated MyClass items = 1;
    }
    

    Load the data as a Foo (you might want to rename that…) and: job done.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets suppose I have an .NET client application that connects to a WCF service,
I have a Windows Service Application in which i create WCF services in it.
Hi, I have a winform application that is hosting a WCF Service(NamedPipes). When reciving
Suppose I had a WCF service that I have coded up, like Clemens Vasters's
I have WCF service with IParameterInspector class which suppose to store the message for
Suppose I have WCF web service that that can retrieve collection of <Person> objects.
Have a WCF service (hosted in IIS 6.0) that takes an XML feed from
Suppose I have a WCF service that is not session or singleton based and
I have been sending encrypted data from my application to my WCF service simply
For an application, I need to have a SSL certificate for a WCF service,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.