I want to handle a base64 photo with paperclip.
When I try:
photo = Photo.new
string = base64string
photo.photo = StringIO.new(Base64.decode64(string))
photo.save
It does not work.
Why?
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…