«HTTP::Message content must be bytes» error when trying to post
- by ZyX
I have the following code:
...
sub setImage {
my $self=shift;
my $filename=shift;
unless(-r $filename) {
warn "File $filename not found";
return;
}
my $imgn=shift;
my $operation=&URI::Escape::uri_escape_utf8(
(shift) ? "???????! (Delete)" : "?????????! (Store)");
my…