Comments (5)
Hello Randy,
I have figured this out. It turns out that Heroku Cedar doesn't really care where you write a temporary file as long as you don't expect it to survive the current request, so my code works just fine on Heroku.
However, I would like to propose that you start a Google Group for question/answers.
Thanks.
Bharat
from axlsx.
Hi @bruparel
Did you know you can also use to_stream when serializing the package? This creates a StringIO object that you can return to the browser, save to a database, save as a flat file for later download etc.
As you are on Heroku - I don't thin this is available for you, but you might also be interested in this old, but interesting post about serving files:
http://www.therailsway.com/2009/2/22/file-downloads-done-right/
Finally:
Here is the google group - but if you want quick answers, I am usually on IRC (freenode) at #axlsx or #travis
Warmest regards
Randy
from axlsx.
Thanks Randy. I was able to tweak your code in your blog post and make it work on Heroku. Heroku Cedar stack does not care about where you write the file as long as you don't expect it to survive the current request/response cycle. So it works just fine.
Regards,
Bharat
From: Randy Morgan [email protected]
To: Bharat Ruparel [email protected]
Sent: Sunday, March 25, 2012 4:43 AM
Subject: Re: [axlsx] Need to ask questions - Create Google Group around axlsx? (#63)
Hi @bruparel
Did you know you can also use to_stream when serializing the package? This creates a StringIO object that you can return to the browser, save to a database, save as a flat file for later download etc.
As you are on Heroku - I don't thin this is available for you, but you might also be interested in this old, but interesting post about serving files:
http://www.therailsway.com/2009/2/22/file-downloads-done-right/
Finally:
Here is the google group - but if you want quick answers, I am usually on IRC (freenode) at #axlsx or #travis
Warmest regards
Randy
Reply to this email directly or view it on GitHub:
#63 (comment)
from axlsx.
By the way, where is the google group?
:)
From: Randy Morgan [email protected]
To: Bharat Ruparel [email protected]
Sent: Sunday, March 25, 2012 4:43 AM
Subject: Re: [axlsx] Need to ask questions - Create Google Group around axlsx? (#63)
Hi @bruparel
Did you know you can also use to_stream when serializing the package? This creates a StringIO object that you can return to the browser, save to a database, save as a flat file for later download etc.
As you are on Heroku - I don't thin this is available for you, but you might also be interested in this old, but interesting post about serving files:
http://www.therailsway.com/2009/2/22/file-downloads-done-right/
Finally:
Here is the google group - but if you want quick answers, I am usually on IRC (freenode) at #axlsx or #travis
Warmest regards
Randy
Reply to this email directly or view it on GitHub:
#63 (comment)
from axlsx.
that would be good to pass on, wouldn't it!
http://groups.google.com/group/axlsx
from axlsx.
Related Issues (20)
- Title not set in LineChart.
- Mutiple thread error file HOT 2
- Conditionnal formating
- Upgrade Rubyzip 2 HOT 6
- outline_level_rows bag
- Stacked bar chart plotted as staircased HOT 3
- formula1 dont work on add_data_validation HOT 1
- Numbers as text HOT 1
- Low-order non-printable ASCII characters in worksheet name should be escaped or removed HOT 5
- Performance reduction with rails 5.2 HOT 2
- undefined method `downcase' when call the serialize method HOT 2
- rubyzip dependency is old
- Deployment not working (mimemagic (0.3.0) - version could not be found HOT 5
- dependent drop-down list
- Axlsx indent not working HOT 1
- DropDownList selected NAME get ID
- can't modify frozen String when run with --enable=frozen-string-literal flag HOT 1
- Stacked bar chart example not working HOT 1
- Error when opening xlsx file from OneDrive but not from other programs HOT 1
- open github discussions tab? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axlsx.