0

This might be a bit of a noob question, so I apologize in advance. How do I make a web server running flask+redis serve binary files as a response to a link/query?

I want the response to the link to be either some AJAX action such as changing a div, or popping up an "unavailable" response, or to serve back some binary file. I would like help both with the client side (jQuery / other Javascript) and the server side.

Thanks!

Side question: Would you choose redis for this task? Or maybe something else such as MongoDB, or a regular RDBMS? And why?

1
  • 1
    For your side question, refer to this nice thread Commented Jul 1, 2012 at 5:57

1 Answer 1

1

Normally you would configure your webserver so that URLs that refer to static files are handled directly by the server, rather than going through Flask.

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah... This is a pretty strange situation, where the webpage is actually the report of some test suite that I run, and its "links" need to be to content which might or might not be available.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.