file transfer using protobuf

7,472 views
Skip to first unread message

Kaustubh Deshmukh

unread,
Oct 5, 2013, 10:43:14 PM10/5/13
to prot...@googlegroups.com
Can I transfer file using google protobuf?

If yes, how?

Thank you for short guidance and help.

Regards,

Kaustubh

Henner Zeller

unread,
Oct 7, 2013, 1:59:21 PM10/7/13
to Kaustubh Deshmukh, Protocol Buffers
On 5 October 2013 19:43, Kaustubh Deshmukh <kaud...@gmail.com> wrote:
Can I transfer file using google protobuf?

The 'bytes' type can store arbitrary content.

If you want to transfer huge files, they you might want to design a protocol araound it by sending chunks that each
are less than 2GBytes, possibly much smaller.

message FileChunk {
   optional int64 offset = 1;
   optional bytes data = 2;
}

Note, protocol buffers are just providing the encoding of your data, the network protocol you still have to do yourself.

-h
 

If yes, how?

Thank you for short guidance and help.

Regards,

Kaustubh

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To post to this group, send email to prot...@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Kaustubh Deshmukh

unread,
Dec 9, 2014, 6:33:38 PM12/9/14
to prot...@googlegroups.com, kaud...@gmail.com, h.ze...@acm.org
Hi Henner,

That worked for me. Thank you for the reply.

navin kurle

unread,
May 21, 2015, 2:02:35 PM5/21/15
to prot...@googlegroups.com, kaud...@gmail.com
Hi,

How I can remove or delete file using google protobuf?

Regards,
Navin

Henner Zeller

unread,
May 21, 2015, 2:05:08 PM5/21/15
to navin kurle, Protocol Buffers, Kaustubh Deshmukh
On 21 May 2015 at 02:45, navin kurle <kurlen...@gmail.com> wrote:
Hi,

How I can remove or delete file using google protobuf?

Well, you need to write your protocol and code that does that. Protobuf  allows you to write the protocol efficiently and platform independently - but you have to write the code for whatever you want to do. Be it making coffee, deleting files or blinking LEDs.

-h

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages