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

Why was base64 chosen instead of opening from filepath? #14

Open
Tex2wo opened this issue Jan 6, 2020 · 2 comments
Open

Why was base64 chosen instead of opening from filepath? #14

Tex2wo opened this issue Jan 6, 2020 · 2 comments

Comments

@Tex2wo
Copy link

Tex2wo commented Jan 6, 2020

Hi, I'm new to openCV and java so just trying to understand react bridge a bit more, I noticed that you commented out:

Bitmap image = decodeSampledBitmapFromFile(imageurl, 2000, 2000);

And replaced it with the base64 from the react native camera. Is there a reason why base64 was used across the bridge instead of just sending the path name through the bridge? Is this faster? If I was going to send an image back to react native - do you suggest sending base64 back or how?

@Meph1k
Copy link
Contributor

Meph1k commented Jan 22, 2020

@Tex2wo

Hey, man!

You're right. Sending a path is much better. This is what we eventually did. Base64 was our very first solution.

@piotr-s-brainhub
Copy link
Contributor

@Tex2wo

is your problem solved or you need any more help?

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

No branches or pull requests

5 participants