How do I convert excel binary from sql database to pdf

how do I convert excel binary from sql database to pdf

@mgetlik,

There is no direct way to accomplish your task. You need to write your own (.NET) code to get Excel (binary) data from database into streams by yourselves first. For example, connect to the SQL server database and then build a query to extract data using DataAdapter and CommandBuilder objects. Next, fill the data into a DataTable. Then, extract the specific record containing binary (Excel) data from the designated field/column in the table. Retrieve that specific DataRow into byte arrays and initialize/create a memory stream based on the byte arrays.

Once the binary data is retrieved into memory streams, you can open/read the Excel file data from the memory stream using Aspose.Cells APIs and convert it to PDF file format. Moreover, see the document on Excel to PDF conversion for your reference.
https://docs.aspose.com/cells/net/convert-excel-to-pdf/