PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, November 12, 2022

[FIXED] How can you, if even possible, Store binary image data within memcached?

 November 12, 2022     image, memcached, php     No comments   

Issue

I am developing a program to store binary image data, and I've decided to use memcached for the cache layer. I don't actually get any error but when I store the binary data in it doesn't quite work.This is what the output of the array is , Look closely at where it says Profile_Pic, the value is just one character

        This is the code I use to update the memcaches array. Note that storing regular 
        values in memcached works fine.
        <?php $unit_array=$this->Memc->getByKey("Unit_Array_Casting_Server",$unit_name);
        $unit_array[$uuid][$keyname]=$keyvalue;
        $this->Memc->setByKey("Unit_Array_Casting_Server",$unit_name,$unit_array); ?>

Solution

Nevermind, it turns out the issue was a internal code issue, I was inputing $keyvalue variable as an array which it is not.



Answered By - TheVastNetwork
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing