title: PHP: Can I cURL POST a base64 encoded string as a file to an API
body: <p>I'm trying to move a file from one API (call it "API-A") and cURL POST it to another API (call it "API-B").</p>
  
  <p>API-A gives me the file as a base64 encoded string.</p>
  
  <p>Right now, I can convert the string, save it as a file, post it, then delete it on my end. </p>
  
  <p>This works, but it feels inefficient. Is there any to take the base64 string I got from API-A, convert it to a blob or something, then POST it as a file?</p>
  
  <p>Thanks!</p>