I want to read files dynamically As i am giving pdf file from django the type of file it is having class 'django.core.files.uploadedfile.TemporaryUploadedFile' if i read the file it will have only bytes which is not understandable. Below is my code
def file(request):
pdf = request.FILES['file']
pdf1 = (pdf.read())
if i print the question i am getting bytes which is not understandable.so how to read pdfs from django dynamically and get text by using django