Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2019-03-12 17:05:13 +01:00
parent bec981cb94
commit caa8aca92a
3 changed files with 5 additions and 3 deletions

View File

@@ -1638,6 +1638,8 @@ def rdata(file, rower=rrower()):
res = rrdata()
except:
res = rrdata()
except EOFError:
res = rrdata()
return res

View File

@@ -83,15 +83,15 @@ def validate_kml(value):
def handle_uploaded_image(i):
import StringIO
from io import StringIO, BytesIO
from PIL import Image, ImageOps, ExifTags
import os
from django.core.files import File
image_str = ""
image_str = b''
for chunk in i.chunks():
image_str += chunk
imagefile = StringIO.StringIO(image_str)
imagefile = BytesIO(image_str)
image = Image.open(i)

Binary file not shown.