image

679 views
Skip to first unread message

leo

unread,
Dec 16, 2010, 7:11:28 AM12/16/10
to Protocol Buffers
I am planning to use 'Protocol Buffers' in one of my Java ME project
which requires server to send catalogs (possibly with images). Can I
send images (PNG format) using 'Protocol Buffers'?

Henner Zeller

unread,
Dec 16, 2010, 6:37:29 PM12/16/10
to leo, Protocol Buffers

With the type 'bytes', you can send arbitrary binary data.

The only limit is the 'reasonable size', i.e. your messages should
typically not be bigger than a couple of megabytes with an absolute
maximum of 2G ... but that will not be a problem for smallish images I
suppose.

-h

Reply all
Reply to author
Forward
0 new messages