Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
How do I convert an ObjectURL to a DB Insertable BLOB

Sending PHP the retval of the Object URL created from an image (blob:http://...) and using PHP's base64_encode() along side with file_get_contents() returns an error claiming that there is no stream or file.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

How about send url of image. then use file_get_contents('http://...') to get the image file content.

For example, your image url is http://example.com/test.jpg

JS

// if image is a link
axiso.post(url, {image: "http://example.com/test.jpg"})

// if image is file select from local, upload file
let data = new FormaData();
formData.append("image", this.files[0]);
axiso.post(url, data, {headers: {'Content-Type': 'multipart/form-data'}})

PHP

// get file content from image link
file_get_contents('http://example.com/test.jpg')

// get content from upload file
$name= "image";
file_get_contents($_FILES[$name]);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!