Skip to content
This repository was archived by the owner on Nov 16, 2021. It is now read-only.
This repository was archived by the owner on Nov 16, 2021. It is now read-only.

Possibility of uploading a document with a file stream instead of File object. #8

@cwmyers

Description

@cwmyers

Hi team,

Firstly, thanks so much for your work on this SDK! Much appreciated.

I was wondering if it was possible to upload a document to onfido via the Java SDK without first creating a File object. The app I'm working on will receive documents from upstream and I would prefer not to save the file to disk first before sending it onto Onfido, mostly because I already have a ByteArray of the document in memory and also because the nature of the content is PII and I'd rather not have those files stored on the server (albeit temporarily).

Currently the uploadDocument methods require a java.io.File object. Would it be possible to have a version that took an InputStream instead? Or should I be using the REST API directly?

Many thanks,
Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions