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

base64Img.requestBase64 succeeds. But how can I get the string our of the request? #17

Open
carpben opened this issue Aug 12, 2019 · 0 comments

Comments

@carpben
Copy link

carpben commented Aug 12, 2019

Using base64Img.requestBase64(url, function(...){...} returns a response with a 200 result. But it is unclear how to extract the image string out of it. Any suggestions?

const getImages = async () => {
	// const sig64 = await image2base64(benImgUrl)
	// return sig64
	return base64Img.requestBase64(benImgUrl, function(err: any, res: any, body: any) {
		console.log(res)
	})
}

image

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

No branches or pull requests

1 participant