Is there a way to convert opencv object (mat object) to blob in javascript?

what do you want to do with it ?
would ImageData do the trick ?

you could look at the imshow() code: