D
Dennis Hotson
I'm having trouble adding a file to a .zip file using python2.3.
The write method of a ZipFile object needs a filename in
order to add a file to the archive.
The problem is that I want to add a 'file-like' object... ie the 'file'
doesn't have a real filename.
Any suggestions on what I could do?
Oh and also, I looked at os.tmpname() to try and create a temporary
file.. but I keep getting warnings about it's security. Does anyone know
how safe it would be to use it?
The write method of a ZipFile object needs a filename in
order to add a file to the archive.
The problem is that I want to add a 'file-like' object... ie the 'file'
doesn't have a real filename.
Any suggestions on what I could do?
Oh and also, I looked at os.tmpname() to try and create a temporary
file.. but I keep getting warnings about it's security. Does anyone know
how safe it would be to use it?