
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
react-native-image-base64
Advanced tools
This repo is a working rewrite of this abandonned library. It provides a very simple way to convert an image to a base64 string.
If you encounter OOM
errors on old android devices, make sure you optimize the image's size before you convert it.
Indeed working with big images on Android might cause very high memory usage.
npm install react-native-image-base64 --save
or
yarn add react-native-image-base64
$ react-native link react-native-image-base64
import ImgToBase64 from 'react-native-image-base64';
ImgToBase64.getBase64String('file://youfileurl', (err, base64string) => doSomethingWith(base64string));
FAQs
Convert image to base64
The npm package react-native-image-base64 receives a total of 3,043 weekly downloads. As such, react-native-image-base64 popularity was classified as popular.
We found that react-native-image-base64 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.