redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

how to embed a binary data into my python program


Goto page Previous  1, 2
 
Post new topic   Reply to topic    Web Design Forums -> Python programming forum
View previous topic :: View next topic  
Author Message
BigDaddy



Joined: 26 May 2006
Posts: 147
froomzer, you don't need unicode, it's 7-bit
  Reply with quote


froomzer



Joined: 23 May 2006
Posts: 148
But unicode strings have these nice encode/decode functions
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
froomzer, they won't deal with base64
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Or is there another method for encoding to base64
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
froomzer, base64.decodestring, base64.encodestring
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Ok, I'll play a bit with the different possibilities and see which one works best. thanks
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
froomzer, bindata = base64.decodestring("""...""")
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Ok, thats fine. thank you!
  Reply with quote
Page 2 of 2 Goto page Previous  1, 2
Post new topic   Reply to topic    Web Design Forums -> Python programming forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group