Skip to content

Commit db4f8e8

Browse files
authored
Update base64_to_image.py
1 parent 143a0b2 commit db4f8e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/base64_to_image.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
SAVE_DIR = os.path.dirname(os.path.abspath(__file__))
23

34
def base64_to_image(filename):
@@ -10,6 +11,7 @@ def base64_to_image(filename):
1011
with open(destination, 'wb') as f:
1112
f.write(data)
1213
return data
14+
# example
1315
# @app.route('/frame/upload/', methods=['GET', 'POST'])
1416
# def upload_image():
1517
# if request.method == "POST":

0 commit comments

Comments
 (0)