I try to give player a filled map with image 127x127. My code: $data = file_get_contents("path/to/image.jpg"); $data = unpack("C*", $data); $nbt->setByteArray("Colors", $data); $item->setNamedTag($nbt); $sender->getInventory()->addItem($item); But, i am getting error. Method setByteArray needs a string. I try to make array to string convert via implode. And i get "transparent" not-worked map and error in console: Unhandled MapInfoRequestPacket received from nick: RAE= What can i do to solve this error and making map worked?