Title: Save Dynamically Generated Image
Last modified: August 20, 2016

---

# Save Dynamically Generated Image

 *  [paulwillen](https://wordpress.org/support/users/paulwillen/)
 * (@paulwillen)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/save-dynamically-generated-image/)
 * Hi All,
 * For a plugin I’m currently creating, I’m looking for a solution to a problem 
   I face at the moment: This is a snippet of my Code
 *     ```
       header("Content-type: image/jpeg");
       echo base64_decode($result);
       ```
   
 * When this code runs I see an image apppearing in my browser
    Now I want to actually
   save this image to my wp-content/uploads folder, and make a WordPres attachment
   of it.
 * Obviously the image is stored in ” $result “.
 * Can anyone point me in the right direction to acchieve this?

The topic ‘Save Dynamically Generated Image’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [paulwillen](https://wordpress.org/support/users/paulwillen/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/save-dynamically-generated-image/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
