0

How to read Python image from string data imageData? I have tried Image.fromstring from PIL and numpy.frombuffer but it hasn't worked yet.

f = open('lena.bmp','rb')
imageData = f.read()
Dzung Nguyen
  • 3,794
  • 9
  • 48
  • 86

0 Answers0