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

Currently I am figuring out how can we convert directly opencv object to blob without using canvas? Any help here

which kind of blob are you talking about ? please explain !

Image blob. Currently I am writing opencv object into canvas usingimshow and then converting blob using toBlob(). If there is a way in opencv which would directly convert images without using canvas.

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

you could look at the imshow() code: