We move file contents using the Data type defined here:
http://www.evernote.com/about/developer/api/ref/Types.html#Struct_Data

This is defined in the IDL as:

   struct Data {

  1:  optional  binary bodyHash,

  2:  optional  i32 size,

  3:  optional  binary body

}

Containing types typically carry additional metadata such as the filename,
MIME type, etc.

Seth

On Thu, Apr 28, 2011 at 1:49 AM, Matias Hernandez Arellano <
[email protected]> wrote:

> (sorry for my english)
> How i need to define my service.thrift to pass an image between client and
> server??
>
> I think in binary, but when this is translated to C++ is written like
> string ...
> I need to pass the image (or the data) between the client and server.
>
> I think about read the image in the Client, extract the data (using some
> library like libjpeg) and pass this data, so this would be binary and in the
> server rebuild the image..
>
> Any idea?
>
> Thanks in advance.
>
>
> Matías Hernandez Arellano
> Ingeniero de Software/Proyectos en VisionLabs S.A
> CDA Archlinux-CL
> www.msdark.archlinux.cl
>
>
>
>
>

Reply via email to