Posted on 2008-12-14 09:15:37-08 by normskib
Unable to parse spreadsheet using scalar reference
Hi Folks

I have an Excel spreadsheet that has been uploaded to a MySQL database and stored as binary data in a BLOB field using UTF-8 encoding. I'm passing a scalar reference to the binary data to the Workbook->Parse() method but it always returns undef. I know the spreadsheet data is OK because I can use the same scalar reference, together with suitable HTTP headers to export the data to Excel via a web browser.

Do I need to read the binary data into a temporary file first with a suitable encoding option and then pass this file to the Parse() method? Or is there another problem here?

Any thoughts and/or advice welcomed.

Cheers Norman Buskell
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.