I am creating product by productCreate mutation. Now I want to upload different images for a product and its variants and the Image Type is base64. How can I achieve this?
You can’t do upload base64 encoded images anymore.
You will either need to stage the media by uploading it to Shopify first before attaching it to products/variants, to give you a Shopify URL.
Or you need to have it available on a URL.
There is a really great guide for how to do this here Manage media for products
Can I use this this graphql mutation for this purpose.
Based on the current Shopify GraphQL API, it does not support uploading images using base64
Yes you can do! If you follow the tutorial I linked previously, it has the mutations you need and examples of it