Re: Re: Re: Re: How to save a binary file?

2010-10-09 Thread hidura
Finally i had problems to save the files what are encoded i can't encode the string to save the file, any ideas? On Oct 6, 2010 3:15pm, hid...@gmail.com wrote: Ppl thanyou, for all your help finally i did it! thanks, another thing to who i can send a propose code, i fixed the little probl

Re: Re: Re: How to save a binary file?

2010-10-06 Thread hidura
Ppl thanyou, for all your help finally i did it! thanks, another thing to who i can send a propose code, i fixed the little problem of the wsig.input in Python 3 i will tested in the next months but i want to share the code with the community, how i can do that? On Oct 6, 2010 3:13pm, h

Re: Re: Re: Re: How to save a binary file?

2010-10-06 Thread hidura
How i get the code what MRAB says theres any manual or example?, because i was trying in Python2.x to do it and give me the same mistake, when i try to use repr that give me more backslash On Oct 6, 2010 10:25am, hid...@gmail.com wrote: When you put the 'wb' extension you have to pass a Encod

Re: Re: Re: How to save a binary file?

2010-10-06 Thread hidura
When you put the 'wb' extension you have to pass a Encode the string Python does not accept a string on a wb file, Python3 On Oct 6, 2010 1:01am, Chris Rebert wrote: > On Oct 5, 2010 8:03pm, MRAB pyt...@mrabarnett.plus.com> wrote: >> On 05/10/2010 23:50, hid...@gmail.com wrote: >> I did

Re: Re: Re: How to save a binary file?

2010-10-05 Thread hidura
I did but the mistake is: Error interpreting JPEG image file (Not a JPEG file: starts with 0x5c 0x6e) I think the problem is maybe in the binary code here is: \xff\\xd8\\xff\\xe0\\x00\\x10JFIF\\x00\\x01\\x01\\x01\\x00H\\x00H\\x00\\x00\\xff\\xdb\\x00C\\x00\\x05\\x03\\x04\\x04\\x04\\x03\\x05\\x04