respondBinary: Respond to HTTP request using binary data in a given MIME...

Description Usage Arguments Examples

Description

Responds to an HTTP request using binary data a given MIME type

Usage

1
respondBinary(binFile, mime, filename, download = FALSE)

Arguments

binFile

the name of a file containing the binary data

mime

a character string containing the MIME type (e.g. "image/gif")

filename

the filename to be used in the HTTP header

download

logical. whether or not to mark this as a download

Examples

1
respondBinary(imageFile,"image/png","image.png",download=TRUE)

jweile/cgir documentation built on May 10, 2019, 10:02 a.m.