hi!
I was making API for laravel application that stores transaction information of a company. with every transaction there will be an invoice jpg file uploaded. the info will be sent through Flutter application.
transactionApiController:
i checked the API with postman and everything works. But now the app developer wants the image in byteArray. So my question is that is it a standard practice to store image as ByteArray in database as there will be hundreds of transaction per day and hundreds of invoices uploaded. Also is there a problem to save it in a file like we do in web applications.
Yet if it's a requirement you can always use this strategy and convert back and forth when receiving/sending the communication. It can become a problem with slowliness though.