问题
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?
(note this would be used to store much larger strings than the example here)
来源:https://stackoverflow.com/questions/31313381/appengine-php-read-and-write-blob-to-datastore