There was an error while loading. Please reload this page.
1 parent 143a0b2 commit db4f8e8Copy full SHA for db4f8e8
python/base64_to_image.py
@@ -1,3 +1,4 @@
1
+import os
2
SAVE_DIR = os.path.dirname(os.path.abspath(__file__))
3
4
def base64_to_image(filename):
@@ -10,6 +11,7 @@ def base64_to_image(filename):
10
11
with open(destination, 'wb') as f:
12
f.write(data)
13
return data
14
+# example
15
# @app.route('/frame/upload/', methods=['GET', 'POST'])
16
# def upload_image():
17
# if request.method == "POST":
0 commit comments