In my case i want to take the file with a input type file from a form, that
is in binary, open it and convert it to a text file, identify its
characteristics  and return  something based in its characteristics to the
user.
Can i use this method (open) to do it ?

Em seg., 13 de fev. de 2023 às 21:25, atleta <[email protected]> escreveu:

>
> You don't open files with django. You open files with the built-in
> function 'open'. Which allows you to specify text or binary mode. See the
> documentation: https://docs.python.org/3.11/library/functions.html#open
> On Monday, February 13, 2023 at 9:56:18 PM UTC+1 Lucas Matos wrote:
>
>> I tested so many ways to do it, however a only found how to open text
>> files. Someone can help me?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/gaXW-MyFR0Y/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/09553009-4ed2-472d-a86c-a7687308b4b9n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/09553009-4ed2-472d-a86c-a7687308b4b9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABLTeWERwso1SigTjv-Ms6nJwrUnT3_kzpCVQ2SttgiPN29%2B%2BA%40mail.gmail.com.

Reply via email to