#NEWLINE# def export( ) : #NEWLINE# #INDENT# import base64 #NEWLINE# raw_data = request . body . read ( ) #NEWLINE# data = raw_data [ raw_data . index ( ',' ) : ] #NEWLINE# response . headers [ 'Content-type' ] = 'image/png' #NEWLINE# return base64 . decodestring ( raw_data )