Skip to content
Discussion options

You must be logged in to vote

There is a method to create base64 encoded data from a DXF document:
https://ezdxf.mozman.at/docs/drawing/drawing.html#ezdxf.document.Drawing.encode_base64

# return data to browser ...
return b'data:application/octet-stream;base64,' + doc.encode_base64()

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@qilong777
Comment options

@qilong777
Comment options

Comment options

You must be logged in to vote
2 replies
@qilong777
Comment options

@qilong777
Comment options

Answer selected by qilong777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #484 on July 01, 2021 04:59.