Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Would like to add a practice that may be helpful for someone: I store an uploaded image as an array of objects in the DB. Each object contains format (jpeg, webp, etc.), name, size, hash and other pieces of information about the transformed image. Frontend app chooses which one to render according to a browser (use webp in Chrome for example.) and UI element.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: