devel
devel > RE: BrainVisa GIFTI files
Apr 17, 2008 01:04 PM | John Harwell
RE: BrainVisa GIFTI files
Olivier,
It appears that the base64 encoder you are using is encoding the data
for use with email (MIME - Multipurpose Internet Mail Extensions).
See section 2.1 of http://www.ietf.org/rfc/rfc3548.txt or the section
titled MIME in http://en.wikipedia.org/wiki/Base64.
John
>
>>
>> By: Olivier Coulon
>>
>> rick,
>> I have to look into it but those newlines are not meant to be. The
>> python code
>> that generates the binary array looks like this :
>>
>> for i in xrange(texture.size()):
>> val=texture.item(i)
>> valeur = valeur + pack(fmt, val)
>> valeur64=base64.encodestring(valeur)
>>
>> So no sign of new lines... it seem to be systematically inserted
>> added after
>> each chunk of 76 characters.
>> I'll come back to you about this once I have understood why it is
>> there.
>>
>> Olivier
>>
It appears that the base64 encoder you are using is encoding the data
for use with email (MIME - Multipurpose Internet Mail Extensions).
See section 2.1 of http://www.ietf.org/rfc/rfc3548.txt or the section
titled MIME in http://en.wikipedia.org/wiki/Base64.
John
>
>>
>> By: Olivier Coulon
>>
>> rick,
>> I have to look into it but those newlines are not meant to be. The
>> python code
>> that generates the binary array looks like this :
>>
>> for i in xrange(texture.size()):
>> val=texture.item(i)
>> valeur = valeur + pack(fmt, val)
>> valeur64=base64.encodestring(valeur)
>>
>> So no sign of new lines... it seem to be systematically inserted
>> added after
>> each chunk of 76 characters.
>> I'll come back to you about this once I have understood why it is
>> there.
>>
>> Olivier
>>
Threaded View
Title | Author | Date |
---|---|---|
Richard Reynolds | Apr 15, 2008 | |
Olivier Coulon | Apr 16, 2008 | |
John Harwell | Apr 17, 2008 | |
Olivier Coulon | Apr 21, 2008 | |
Olivier Coulon | Apr 21, 2008 | |