How to apply spreadsheet-excel-ole-storage.patch and parseex



I am going to export data to excel file from my project.
I am using spreadsheet-excel ( gem to read/write data in excel.
I got #<MaxSizeError: MaxSizeError> error when exporting some amount of
data to excel.
when i am searching for the above problem , i got
spreadsheet-excel-ole-storage.patch and parseexcel-ole-storage.patch as
a solution from
(i got the patches from

Now i just want to know how to use these patch ???

Please guide me.