Hi @Karan
You'll end up to transform the file source as string in any case because you cannot pass a native object (the File object) betweet the iframe of the custom component to Retool.
I guess you can convert the base64 to binary in js, such this solution:
Hope this help.