I have found a way to insert base64 image as attachment, it inserted succeed but not show the thumbnail and size of image.
see here
THis is my code: