Byte array conversion to data in angular

Posted by: nivishapanwar on 9 November 2020, 11:20 am EST

    • Post Options:
    • Link

    Posted 9 November 2020, 11:20 am EST

    Hello Team,

    In my project while import/export any file/data(xls,xlsx or pdf) we will convert into bytes and then import/export to the folder and the extension for the file import /export used is .rbwt. So can we convert the byte array to data in angular , so that we can export an excel file? We are using wijmo grid in angular.

    Thanks.

    Regards,

    Nivisha

  • Posted 10 November 2020, 8:32 am EST

    Hi Nivisha,

    The FlexGrid can only import xlsx format (or pdf) and export the data to excel in xlsx format (or pdf). It cannot work with a byte array. But, if you need to use a byte array in your application, you will need to convert it into a string. You can try the solution from the following StackOverflow link:

    https://stackoverflow.com/a/3195961

    Regards,

    Ashwin

  • Posted 10 November 2020, 9:44 am EST

    Thanks for the help Ashwin.

    Yeah will convert the byte array to json first then.

    Regards,

    Nivisha

  • Posted 11 November 2020, 7:39 am EST

    Hi Ashwin,

    Can we export/import custom extension files in flexgrid?

    Thank you.

    Regards,

    Nivisha

  • Posted 11 November 2020, 11:04 pm EST

    HI Nivisha,

    Only xlsx and CSV can be imported into FlexGrid and xlsx, CSV, and pdf can be exported.

    ~regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels