Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9077205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:17:15+00:00 2026-06-16T19:17:15+00:00

Hii all i am trying to convert blog string into base64 but i am

  • 0

Hii all i am trying to convert blog string into base64 but i am unable to do that please guys help me to get out from it..

this is my Blob string

    $blob="blob:4cfaa6d2-3712-4986-98d7-bd8747d26f8b";
    $image = imagecreatefromstring($blob);
    ob_start();
    imagejpeg($image, null, 80);
    $imagedata = ob_get_contents();
    ob_end_clean();
    $img=base64_encode($imagedata);

and mysql insert query goes here for insert this base_64 encoded image

and i am getting this “error Data is not in a recognized format”

Please help me guys..

Thanks in Advance..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T19:17:16+00:00Added an answer on June 16, 2026 at 7:17 pm

    The short string “blob:4cfaa6d2-3712-4986-98d7-bd8747d26f8b” is just a UUID your browser generated to identify a dynamically generated image. Transmitting this ridiculously short string to the server will definitely not transmit the image.

    Instead, in your JavaScript, you need to create a FormData object, append the Blob to it, and then POST the FormData object to the server using XMLHttpRequest. The image should arrive at the server as a normal file upload. See Using FormData Objects on MDN for example code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I am trying to remove all numbers that are divisible by two from
Hi I'm trying to convert the XML file into associative array by using the
Hi I trying do something like that: I've got some string - 'Hello World!'
Hi I'm trying to get all the content from http://services.runescape.com/m=news/recruit-a-friend-for-free-membership-and-xp INCLUDING links, but not
Hii all m trying to implement Drag and Drop in 3.0.i have gone through
Hi I'm trying to get a dinamically input added with Jquery, but when I
Hi I am trying to get a website running with Mosso that has Castle
Hi I am trying to convert some strings fetched from database into 'Title case'
Hii all, I am trying to downaload large file in rails using send_data function
Hi I am trying to convert a a LINQ query result into a list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.