Hello Team,
I have a requirement for one of my projects to export and import binary data (PDF/Word) within Excel. However, we lack an option to directly export binary data. Therefore, I've opted to convert the binary to base64/text during the export process and then convert it back to binary when importing the data into another table. Unfortunately, I'm encountering discrepancies in the binary data. It appears to be incorrect, and I'm unable to obtain the correct data.
I require assistance in addressing this issue with importing and exporting binary data in Excel. Could you please provide guidance or support on this issue?
Thanks,
Abinaya
Hi @Abinaya Chinnadurai,
when you are converting the binary to base64/text and when your converting it again is that format same ?
Yes @Madhuri Patil , the format remains same. however, when attempting to view the uploaded file, it displays as an error file.
Hi Abi, are you looking to achieve this in OutSystems, or would you prefer to use a .NET extension to achieve the result? What are your expectations?
Hi Mani,
My sole intention is to export and import binary data (PDF/Word) within Excel. I'm just wondering if there's any method within OutSystems to accomplish this or if we need to resort to using a .NET extension. Have you encountered a similar situation before?
Thanks,Abinaya
Please share the OML having the sample implementation of what you could do so far. I believe you are trying to achieve Excel -> Insert -> Object ( PDF or Word ) in OutSystems.
Hello Siya ,
Yes am trying to import and export Binary data (PDF/Word) within Excel.
Please find the Samplke App oap and OML file .
I understand you want to show a list of employees in a table and allow users to upload binary data (like photos and PDFs) for each row, then export this data to Excel. Directly copying binary data into a cell won't work; instead, you need to embed the data as OLE objects. Underlying library which Advanced Excel uses is EPPLus and that does not support OLE Objects.
Suggested Approach
Store Binary Data:
Export to Excel:
Alternative Approach:
Hope this clarifies.
Thank you for providing the detailed explanation,The suggested approach makes sense.
I'll proceed with implementing one of these approaches and keep you updated on the progress.