代码之家  ›  专栏  ›  技术社区  ›  csandreas1

将图像对象转换为字节对象,以便将其存储在blob列中

  •  0
  • csandreas1  · 技术社区  · 4 年前

    如何将实际图像转换为字节?

    img = Image.open(io.BytesIO(dfa.flal_file)).convert('RGB')
    
    0 回复  |  直到 4 年前