Bind a Data In Uploader

I Get Data From Mssql In Base64 Format And I try To Bind Data in Uploader But I didn't Get Any Method Are Event Like ImageEditor Open Event If There Is Any Event For File Uploader 

Ex:

document.getElementById('img_' + ControlId).ej2_instances[0].open(result);

ImageEditor Oprn Event

  


3 Replies

BS Buvana Sathasivam Syncfusion Team May 31, 2023 12:55 PM UTC

Hi Murali,


We understand that you are looking to upload a base64 string using our file upload component. While our default configuration does not directly support base64 strings, we have a solution that can help you achieve your requirement.


To upload a base64 string, you can convert it into a file type and then use the Uploader component to upload it. We recommend referring to the following link for guidance on how to convert a base64 string to a JavaScript file object:


Link: https://stackoverflow.com/questions/35940290/how-to-convert-base64-string-to-javascript-file-object-like-as-from-file-input-f


API link: https://ej2.syncfusion.com/documentation/api/uploader#upload


We hope this information helps you in achieving your desired outcome.


Regards,

Buvana S



CP CPS June 9, 2023 12:56 PM UTC

how to bind Data in uploader Using Fileinfo[] method give me a code example



BS Buvana Sathasivam Syncfusion Team June 27, 2023 09:24 AM UTC

Hi Murali,


Thank you for reaching out to us. To address your concern, we recommend utilizing the FileInfo and passing it into the uploader's upload public method. You can find detailed instructions on how to achieve file upload programmatically in our documentation.


To assist you further, we have provided a link to the documentation that specifically addresses this topic: https://ej2.syncfusion.com/aspnetcore/documentation/uploader/how-to/achieve-file-upload-programmatically


We encourage you to review the documentation, as it will guide you through the process of uploading images programmatically.


If you have any additional questions or need further assistance, please don't hesitate to reach out to us. We are here to help.


Regards,

Buvana S


Loader.
Up arrow icon