When you convert data to base64, you get a string with this format data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAABQAAA... however, inouting this directly throws and error. Everything works fine if we omit data:image/jpeg;base64,.
Can we make the client parse the string and remove that substring?