MCPcopy
hub / github.com/BlueWallet/BlueWallet / handleImageFile

Function handleImageFile

blue_modules/fs.ts:191–198  ·  view source on GitHub ↗
(fileCopyUri: string)

Source from the content-addressed store, hash-verified

189};
190
191const handleImageFile = async (fileCopyUri: string): Promise<{ data: string | false; uri: string | false }> => {
192 const base64 = await readFileAsBase64(fileCopyUri);
193 const result = await detectQRCodeInImage(base64);
194 if (result) {
195 return { data: result, uri: fileCopyUri };
196 }
197 throw new Error(loc.send.qr_error_no_qrcode);
198};
199
200export const readFileOutsideSandbox = (filePath: string) => {
201 if (Platform.OS === 'ios') {

Callers 1

Calls 1

readFileAsBase64Function · 0.85

Tested by

no test coverage detected