Code Monkey home page Code Monkey logo

Comments (5)

bruparel avatar bruparel commented on September 7, 2024

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.

randym avatar randym commented on September 7, 2024

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.

bruparel avatar bruparel commented on September 7, 2024

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.

bruparel avatar bruparel commented on September 7, 2024

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.

randym avatar randym commented on September 7, 2024

that would be good to pass on, wouldn't it!

http://groups.google.com/group/axlsx

from axlsx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.