> In your mp1 code, you are simply slurping the upload into > $full_image_data; with apreq2 you can do that with a bucket > brigade via > > my $bb = $req->upload('image')->bb; > my $full_image_data = ""; > > while (my $b = $bb->first) { > $b->read(my $buffer); > $full_image_data .= $buffer; > $b->remove; > }
Thanks for your help, but I get 'Can't locate object method "first" via package "APR::Brigade"' with the above. I also get ''Can't locate object method "fh" via package "Apache::Request"' if I follow Stas Bekman's advice and install apreq2, which I'm sure I've done successfully. Do you have any advice on how I can make sure I have apreq2 installed correctly? I'm beginning to think it isn't installed/isn't loading properly (it's a DSO). Thanks, Pete -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html