- Main Page
- Data Structures
- Files

- Alphabetical List
- Data Structures
- Data Fields

# jasperserver_attachment Struct Reference

`#include <jasperserver/attachment.h>`

## Data Fields
unsigned char * | __ptr
int | __size
char * | id
char * | type
char * | options

## Detailed Description

This struct contains all the fields required by the callbacks to stream a file as attachment using the mechanism provided by gSOAP. This struct should not be used by the user. It is used internally by the function jasperserver_attach_file.

See also:
  jasperserver_attach_file

Definition at line 32 of file attachment.h.

## Field Documentation

unsigned char* jasperserver_attachment::__ptr

fd handle which we need in the callbacks

Definition at line 34 of file attachment.h.

int jasperserver_attachment::__size

size of the file to read

Definition at line 35 of file attachment.h.

char* jasperserver_attachment::id

always set to attachment

Definition at line 36 of file attachment.h.

char* jasperserver_attachment::type

always set to application/octet-stream

Definition at line 37 of file attachment.h.

char* jasperserver_attachment::options

obtained using soap_dime_option(soap, 0, "attachment")

Definition at line 38 of file attachment.h.

The documentation for this struct was generated from the following file:

- jasperserver/attachment.h