I’m using the Node.JS node-mysql module. One column has a BLOB type and want to read from it and if possible base64 encode it. I haven’t been able to find anything on how to do this.
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try the following snippet:
If your blob is binary, use the following instead:
You can also simplify that to one line: