`tf.image.decode_jpeg` can not decode jpeg base64 encoded image
@GF-Huang 
Could you have a look at the below example of what decode jpeg function does in TensorFlow;
```

import tensorflow as tf
path_image = "/content/kitten.jpg"
image_open = open(path_image, 'rb')
read_image = image_open.read()
image_decode = tf.image.decode_jpeg(read_image)
image_decode
```
Though, I was able to replicate the issue using an image, please find the [gist](https://colab.research.google.com/gist/sushreebarsa/97b758558e63cf3ff9e0b195dadac81e/61286.ipynb) here!
Thank you!
 My mistake, the `PIL.Image.tobytes()` is the internal bytes format. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61286">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61286">No</a>
 @GF-Huang Glad it is working fine for you now. Thank you!
### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

binary

### TensorFlow version

2.10.1

### Custom code

Yes

### OS platform and distribution

Win11 22H2

### Mobile device

_No response_

### Python version

3.10.11

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

It raise: `InvalidArgumentError: {{function_node __wrapped__DecodeJpeg_device_/job:localhost/replica:0/task:0/device:CPU:0}} Unknown image file format. One of JPEG, PNG, GIF, BMP required. [Op:DecodeJpeg]`

![image](https://github.com/tensorflow/tensorflow/assets/4510984/342f8602-a2ba-48b7-bdaa-4d0684f9299f)

![image](https://github.com/tensorflow/tensorflow/assets/4510984/6177e9d3-90ed-42c8-881f-cc18bd045f39)


### Standalone code to reproduce the issue

```shell
import base64

from PIL import Image
import tensorflow as tf

img = Image.open('xxx.jpg')
base64str = base64.b64encode(img.tobytes()).decode()
tf.image.decode_jpeg(base64str, channels=3)
```


### Relevant log output

_No response_