Hello everyone,
since one week, I'm programming with python. Its a realy interesting
tool. I wrote a script for generating barcodes in jpg-format.
Everything is ok, but my function "CreateBarc ode" should write the jpg
data into an outstream. All barcodes will be generate online, without
saving the jpgs on harddisk.
Can you give me a tip witch objects I need and how to put the jpg into
an outgoing stream?
import Image, ImageDraw
def CreateBarcode(S ourceString,Lin ewidth,WriteTex t):
blablabla
...
NewImage = Image.new("L",N ewSize,Backcolo r)
ImgDraw = ImageDraw.Draw( NewImage)
....
#How to put the image into an stream?
best regards
Steffen Brodowksi
Germany
since one week, I'm programming with python. Its a realy interesting
tool. I wrote a script for generating barcodes in jpg-format.
Everything is ok, but my function "CreateBarc ode" should write the jpg
data into an outstream. All barcodes will be generate online, without
saving the jpgs on harddisk.
Can you give me a tip witch objects I need and how to put the jpg into
an outgoing stream?
import Image, ImageDraw
def CreateBarcode(S ourceString,Lin ewidth,WriteTex t):
blablabla
...
NewImage = Image.new("L",N ewSize,Backcolo r)
ImgDraw = ImageDraw.Draw( NewImage)
....
#How to put the image into an stream?
best regards
Steffen Brodowksi
Germany
Comment