react-native-opencv-tutorial icon indicating copy to clipboard operation
react-native-opencv-tutorial copied to clipboard

Why was base64 chosen instead of opening from filepath?

Open Tex2wo opened this issue 5 years ago • 2 comments
trafficstars

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?

Tex2wo avatar Jan 06 '20 15:01 Tex2wo

@Tex2wo

Hey, man!

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

Meph1k avatar Jan 22 '20 14:01 Meph1k

@Tex2wo

is your problem solved or you need any more help?

piotr-s-brainhub avatar Feb 24 '20 11:02 piotr-s-brainhub