Search in sources :

Example 1 with FileObjectJsImpl

use of com.googlecode.gwtphonegap.client.file.js.FileObjectJsImpl in project gwtphonegap by dankurka.

the class CameraBrowserFileInput method getBase64.

private void getBase64(ReaderCallback<FileReader> callback) {
    FileObjectJsImpl file = getFile(input.getElement());
    FileReader reader = createReader();
    reader.setOnLoadEndCallback(callback);
    reader.readAsDataUrl(file);
}
Also used : FileObjectJsImpl(com.googlecode.gwtphonegap.client.file.js.FileObjectJsImpl) FileReader(com.googlecode.gwtphonegap.client.file.FileReader)

Aggregations

FileReader (com.googlecode.gwtphonegap.client.file.FileReader)1 FileObjectJsImpl (com.googlecode.gwtphonegap.client.file.js.FileObjectJsImpl)1