OK thanks - I'll change to upload then.
Richard

On May 7, 3:26 pm, mdipierro <[email protected]> wrote:
> On May 6, 10:05 pm, rbp <[email protected]> wrote:
>
> > hello,
>
> > I just noticed that web2py has an easy way to stream data - that's
> > fantastic!
> > Currently I upload and download data without streaming which is really
> > tough on my web2py server.
>
> > All the examples I've seen are for streaming a file on the file
> > system. Is it possible to stream a blob fieldtype without loading it
> > all into memory at once?
>
> No because web2py base64 encodes blobs.
>
> > Also, how can I manually stream an upload? I am trying to save the
> > posted data with a request without the server having to load it all
> > into memory at once.
>
> If you use SQLField('file','upload') it ill by default stream in
> upload and download. If you use SQLField
> ('file','upload',uploadfield='the_blob_field') then it must be read in
> memory at once in order to communicate with the DB.
>
> Massimo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to