I have already stored some data in the SQL Server database with this code
_bitmap = BitmapFactory.decodeFile(path);
byteArrayOutputStream = new ByteArrayOutputStream();
_bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
bytesImage = byteArrayOutputStream.toByteArray();
image = Base64.encodeToString(bytesImage, Base64.DEFAULT);
String query =
"INSERT INTO EloanApp(SeqID,AppImage) VALUES ('" + seqid + "','" + image + "')";
Statement stmt = con.createStatement();
stmt.executeUpdate(query);
And to make it sure that if it is successfully uploaded the image, I tried to export the image stored in my database and opened it, the photo viewer, shows "It looks like we don't support this file format." what seems could be the problem here?
PS.
I exported the image with this method