... dare I ask, how big is the file?

Cal

On Wed, Apr 27, 2011 at 3:20 PM, Elton Pereira <[email protected]> wrote:

> When attempting to download a zip file the following error is raised:
>
> 192.168.1.39 - - [27/Apr/2011 11:12:35] "GET /media/downloads/betha/
> essencial/sybase9/windows32/win32.rar HTTP/1.1" 500 -
> Traceback (most recent call last):
>  File "/usr/local/lib/python2.6/dist-packages/django/core/servers/
> basehttp.py", line 674, in __call__
>    return self.application(environ, start_response)
>  File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
> wsgi.py", line 252, in __call__
>    response = middleware_method(request, response)
>  File "/usr/local/lib/python2.6/dist-packages/django/middleware/
> gzip.py", line 35, in process_response
>    response.content = compress_string(response.content)
>  File "/usr/local/lib/python2.6/dist-packages/django/utils/text.py",
> line 183, in compress_string
>    zfile.write(s)
>  File "/usr/lib/python2.6/gzip.py", line 197, in write
>    self.fileobj.write( self.compress.compress(data) )
> MemoryError
>
> NOTE: any other file I can download normally, the error only happens
> with RAR files.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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.

Reply via email to