Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public static String saveImageToDisk(byte[] imageData) { if (imageData == null) { Log.e(TAG, "Error: imageData is null - can not save to disk."); return null; } Log.v(TAG, "Decoding image data..."); Bitmap myImage = BitmapFactory.decodeByteArray(imageData, 0, imageData.length); if (myImage == null) { Log.e(TAG, "BitmapFactory did not sucessfully decode the byte array...exiting."); return null; } Log.v(TAG, "Creating a new image file..."); File sdImageMainDirectory = new File(SD_DIRECTORY); Log.v(TAG, "Saving image to disk..."); String imagePath = sdImageMainDirectory.toString() +"/" + IMAGE_NAME + ".jpg"; try { BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(imagePath), 8000); myImage.compress(CompressFormat.JPEG, STORAGE_QUALITY, bos); // important! compress the image down before sending bos.flush(); bos.close(); } catch (Exception e) { Log.e(TAG, "Error - did not sucessfully save the image to disk"); e.printStackTrace(); return null; } return imagePath; }