AppEngine PHP read and write blob to datastore
问题 The Google AppEngine PHP API provides a way to read and write to a blob. public function setBlobValue($blobValue) { $this->blobValue = $blobValue; } public function getBlobValue() { return $this->blobValue; } However this doesn't seem to work when writing / reading an html string stored in a blob, e.g. $string = "<div>Test</div>" $obj->setBlobValue(base64_encode($string)); then after a query: $string = base64_decode($obj->getBlobValue()); doesn't work - is there something I'm doing wrong here