-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24edbc1
commit 7a21f75
Showing
8 changed files
with
64 additions
and
34 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
dbPath = './DbFuncs/sql.db' | ||
|
||
# convert image to blob data | ||
def convert_to_blod_data(filename): | ||
with open(filename, 'rb') as file: | ||
blobData = file.read() | ||
return blobData | ||
|
||
# write | ||
def write_to_file(data, filename): | ||
# Convert binary data to proper format and write it on Hard Disk | ||
with open(filename, 'wb') as file: | ||
file.write(data) | ||
print("Stored blob data into: ", filename, "\n") | ||
|
||
|
||
|
||
# path = 'D:\\tmp\\' + product[1] + '.png' | ||
# utils.write_to_file(product[2], path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters