I am trying to show binary image data from Database on ignition vision image component.
Look up this thread, might be useful:
system.file.writeFile will convert the blob to an actual file. From there, you can do with it whatever you want. In your case, you just want to supply the path to your image component.
That's a terrible idea for this task. Numerous efficient solutions are posted on this forum that use the paintable canvas and take the blob data directly from a dataset.