jpeg - php : How to create a string of image binary without saving it to a file? -


मेरे पास एक छवि वैरिएबल है,

  $ im = imagecreatetruecolor (400, 300);   

क्या जेपीजी प्रारूप में इस छवि के बाइनरी को एक फ़ाइल में सहेजे बिना पाने के लिए वैसे भी है? धन्यवाद!

  ob_start (); imagejpeg ($ im); $ ImageString = ob_get_clean ();    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -