Closed squarebrakets closed 3 years ago
Hello, I would like to store very small resized images to a DB as binary data. What can I do?
Hello,
You can use the Encode function (imaging.Encode or jpeg.Encode or png.Encode etc) to write the resized image to a bytes.Buffer and store buffer.Bytes() to the database.
Thank you
Hello, I would like to store very small resized images to a DB as binary data. What can I do?