The C++ REST SDK(Casablanca) is currently only available to link dynamically(DLL) unless you build the library on your own. Here is the link describing the steps to link static to your application by downloading the source code and building it so. If you're using the cpprest sdk and unfortunately encountered the following debug heap assert, you probably made mismatch configuration for … Continue reading CppRest SDK(Casablanca) + static CRT link = caution! (might cause debug heap assert)
Month: May 2015
Downloading a file on the fly from Flask+sqlalchemy
Following code snippet shows how to implement downloading a file with flask. http://flask.pocoo.org/snippets/32/ def index(): strIO = StringIO.StringIO() strIO.write('Hello from Dan Jacob and Stephane Wirtel !') strIO.seek(0) return send_file(strIO, attachment_filename="testing.txt", as_attachment=True) In case you need to use the snippet to support downloading a file which is stored as BLOB originally and to convert it as a … Continue reading Downloading a file on the fly from Flask+sqlalchemy