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 /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

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 /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - how to send image to remote server using webservices in andr

how to send image to remote server using webservices in andr

All your problems with Audio, Video and Images.

how to send image to remote server using webservices in andr

Postby narasimharao » Thu Apr 15, 2010 4:58 am

get image from sdcard and store that image to remote server. i am getting the image from sdcard and i converterd that image to bytearray by using bitmap .but what's the problem if i oberver byte array it is showing some different values it is not matching with .net image byte array conversion. can u pl help if you have any solution it is very urgent to me

following is the code i am using can u pl suggest me



FileInputStream fin = new FileInputStream(new File("/sdcard/pictures/1.jpg"));
BufferedInputStream bis = new BufferedInputStream(fin,3000);
byte[] data = new byte[bis.available()];
bis.read(data, 0, data.length);
byte[] data1=new byte[data.length];
for (int i = 0; i < data.length; i++)
{
System.out.print(data[i]);
data1[i]=data[i];
}
System.out.println("5..................."+data1);
Bitmap bitmap = BitmapFactory.decodeByteArray(data1,0,data1.length);
System.out.println("6..................."+data1.length);
Log.v("hgfjohfjghjdfhgj",""+bitmap);
if(bitmap!=null)
image.setImageBitmap(bitmap);
else
Log.e("Bitmap "," Not Created");
narasimharao
Junior Developer
Junior Developer
 
Posts: 11
Joined: Mon Apr 05, 2010 12:40 pm
Location: hyderabad

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 5 guests