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

  • SEARCH
  • Home
  • 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 7988809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:33:56+00:00 2026-06-04T12:33:56+00:00

I need to exchange both protobuf-net objects and files between computers and am trying

  • 0

I need to exchange both protobuf-net objects and files between computers and am trying to figure out the best way to do that. Is there a way for A to inform B that the object that follows is a protobuf or a file? Alternately, when a file is transmitted, is there a way to know that the file has ended and the Byte[] that follows is a protobuf?

Using C# 4.0, Visual Studio 2010

Thanks, Manish

  • 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-04T12:33:58+00:00Added an answer on June 4, 2026 at 12:33 pm

    This has nothing to do with protobuf or files, and everything to do with your comms protocol, specifically “framing”. This means simply: how you demark sub-messages in a single stream. For example, if this is a raw socket you might choose to send (all of)

    • a brief message-type, maybe a byte: 01 for file, 02 for a protobuf message of a particular file
    • a length prefix (typically 4 bytes network-byte-order)
    • the payload, consisting of the previous number of bytes

    Then rinse and repeat for each message.

    You don’t state what comms you are asking, so I can be more specific.

    Btw, another approach would be to treat a file as a protobuf message with a byte[] member – mainly suitable for small files, though

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

Sidebar

Related Questions

I need a way to exchange data between a process and a windows service.
I am looking to create a web site that will need to exchange information
I need to write a script for MS Exchange Server 2003 that will analyze
i need to exchange a struct timeval between kernl-space and user-space (through a netlink
I need a system to exchange very secret data (source code that is a
I am attempting to implement xmpp chat/collaboration between two C# desktop clients that exchange
I need to exchange data between FreeImage (FIBITMAP) and OpenCV format (IplImage and/or Mat).
am newbie to both WCF and Named pipes. I need a way to securely
I have a need of implementing two apps that will exchange data with each
Background... We've built a web-based b2b system. We know that we'll need to exchange

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.