hi,

   I'm going to use protocol buffers in http post data, seems
SerializeToString can be used to generate binary string, but what if
the data is very large, is all data serialize in memory?

   The following is the proto file I defined, It is used for file
upload.

/////////////////////////////////////
package fileupload;

message Range {
  required uint64 start = 1;
  required uint32 len = 2;
}

message Block {
  required Range r = 1;
  required bytes blk_hash = 2;
  required bytes blk_data = 3;
}

message DifferUpload {
  repeated Block blk = 1;
}

/////////////////////////////////////

   Any solutions>

  Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to