diff --git a/packages/react-native-executorch/common/rnexecutorch/data_processing/ImageProcessing.cpp b/packages/react-native-executorch/common/rnexecutorch/data_processing/ImageProcessing.cpp index ab28d1263..e5c484a19 100644 --- a/packages/react-native-executorch/common/rnexecutorch/data_processing/ImageProcessing.cpp +++ b/packages/react-native-executorch/common/rnexecutorch/data_processing/ImageProcessing.cpp @@ -86,7 +86,7 @@ cv::Mat readImage(const std::string &imageURI) { while (std::getline(uriStream, stringData, ',')) { ++segmentIndex; } - if (segmentIndex != 1) { + if (segmentIndex != 2) { throw RnExecutorchError(RnExecutorchErrorCode::FileReadFailed, "Read image error: invalid base64 URI"); }