Hi I save a byte array using nodejs mysql library. My issue is, the byte array I have is of length 9459. But when I insert into mysql and read it back , it is giving me an array of size 32504.
Below is my SQL query which I am executing from nodejs
const query = "INSERT INTO spreaddata.workbook SET `user_email`='" + userEmail + "', `workbook_data`='" + workbook_data + "'";
Below is my Select query
const selectQury = "SELECT * from spreaddata.workbook WHERE user_email='name@company.com';
Here workbook_data is the column of type blob in mysql. When I inspect the byte array recieved it is having a length of 32504. Why the length is getting increased.
I am resubmitting this question because clearly this is not a duplicate question