On Sun, 2007-06-24 at 18:01 +0000, Ramashish Baranwal wrote: > Hi, > > Apologies if its mentioned in the documentation. I would like to know > whether I can put binary data in a CharField?
No. It has to be ASCII data (or Unicode data, shortly). Other cases might work sometimes, but there are always going to be problems with 0 bytes, for example. Safest approach: use pickling or conversions such as base64or base96 to encode the results. There's also an open ticket somewhere to create a genuine BLOB field, but there were a few problems (from memory) with getting it to be truly portable. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---