FileUpload

data class FileUpload(val bitmap: Bitmap, val fieldName: FileUploadFieldName)

A bitmap image prepared for upload to the Frame document verification endpoint.

Constructors

Link copied to clipboard
constructor(bitmap: Bitmap, fieldName: FileUploadFieldName)

Properties

Link copied to clipboard

The image to upload.

Link copied to clipboard

Which document side or selfie this image represents.

Link copied to clipboard

The filename used in the multipart upload, derived from fieldName.

Link copied to clipboard

MIME type for the uploaded image.

Functions

Link copied to clipboard

Compresses the bitmap to a JPEG byte array at 30% quality for upload.