I am sending an image to laravel API using retrofit
D/NetworkManagementSocketTagger: tagSocket(74) with statsTag=0xffffffff, statsUid=-1
I/mple1.messegin: Background concurrent copying GC freed 21904(27MB) AllocSpace objects, 14(3MB) LOS
objects, 50% free, 18MB/37MB, paused 402us total 102.147ms
E/FF1: 500 Response{protocol=http/1.1, code=500, message=Internal Server Error,
url=http://192.168.1.8/company_messenger/public/apistore}
I see the first line then after a moment the other two lines appear
I get these errors I don't know what exactly is the problem
I convert the image to base64
ByteArrayOutputStream baos = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos); // bm is the bitmap object byte[] b = baos.toByteArray(); String encodedImage = Base64.encodeToString(b, Base64.DEFAULT);
In laravel I receive it in column with type TEXT
PS: when I send just a small string instead of the image decoded it is stored correctly