Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert base64 string to file name for images #143

Open
jacky-ew opened this issue Apr 7, 2020 · 5 comments
Open

convert base64 string to file name for images #143

jacky-ew opened this issue Apr 7, 2020 · 5 comments

Comments

@jacky-ew
Copy link

jacky-ew commented Apr 7, 2020

Hi, is there anyway i get a file.jpg/file.png instead of base64 string?

@Cerovec
Copy link
Contributor

Cerovec commented Apr 7, 2020

Hi @jacky-ew,

Thanks for the idea. Can you suggest how would the API look like?

Thanks,
Jurica.

@jacky-ew
Copy link
Author

jacky-ew commented Apr 7, 2020

my suggestion will be

var blinkIdInstance = new BlinkIDReactNative.BlinkIdCombinedRecognizer();
blinkIdInstance.returnFullDocumentImage = true;
blinkIdInstance.returnFaceImage = true;
**blinkIdInstance.encodedImage="file"/"base64"

also i found this http://blinkid.github.io/blinkid-ios/Classes/MBImageReturnProcessorResult.html#/c:objc(cs)MBImageReturnProcessorResult(py)encodedImage

so current version of blinkId has no proper method / key to toggle between file and base64 string for the images?

@Cerovec
Copy link
Contributor

Cerovec commented Apr 14, 2020

Hi @jacky-ew,

I think I don't have a clear understanding of what do you actually need. Would you like to specify which image to process, by specifying the file name for that image? Or would you rather get the image, which is an output of the scanning process (such as an image of the full document) as a file rather than a base64 string?

What is your underlying use case for this?

Thanks,
Jurica.

@jacky-ew
Copy link
Author

Hi Jurica, i wish to have the output of the scanning process, image of the full document, to be a file.
However will be better if we can state the format ourselves, which mean we can toggle the output of scanning to be either a file (.png) or base64 string

@Cerovec
Copy link
Contributor

Cerovec commented Apr 20, 2020

Thanks @jacky-ew.

And what's the underlying use case behind this?

Our assumption when we decided to return base64 images was that in the large majority of cases these images will be shown to the user in the app, or transmitted over the network. Do you have something else in mind when you think about using files directly?

Thanks,
Jurica.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants