« first day (1044 days earlier)      last day (292 days later) » 

5:05 AM
Gud morning all
 
5:25 AM
hello @mohan
GM
 
5:54 AM
@GurumoorthyArumugam hi ji gudmorning
 
6:19 AM
gud mrng @all
 
6:31 AM
hello @mohan @TamilselvanKalimuthu How are you ?
long time !!
 
@GurumoorthyArumugam yes.. fine..
after a long time.....
 
@TamilselvanKalimuthu hmm which company are you now ?
 
innoppl chennai
@GurumoorthyArumugam
 
ohh ok ok fine ..
 
hi all....
tamil are you der?
 
6:43 AM
@malavika yes tel
 
@TamilselvanKalimuthu image upload pani irukeengala ?
 
@malavika m s
 
i have done image compression like this
Bitmap bm = BitmapFactory.decodeResource(getResources(),R.drawable.about);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
bm.compress(Bitmap.CompressFormat.JPEG, 100 , bos);

byte[] bitmapdata=bos.toByteArray();

imgData=Base64.encodeToString(bitmapdata,Base64.DEFAULT);
its giving very laong string
long*
 
hm s it will be a long string
 
i m not able to upload to the server
 
6:47 AM
post request thana use pnurenga?
 
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>503 Service Unavailable</title> <style type="text/css"> #page {width: 416px; padding: 10px; margin: 200px auto; border: 1px solid grey; background-color: #DFDFDF;} body {background-color: #CCC; margin: auto; font-family: Helvetica, Ariel, sans-serif;} </style> </head> <body> <div id="page"> <h1>Page Cou
i got this response from the server
ya ya i am using post only
json.put("file", imgData);
json.put("filename", "sample.jpeg");
json.put("filesize", 16);
json.put("uid", 4);
 
@malavika that is error page created by the web people
 
this is my json
for posting the data
 
api ah check pnunga. url correct ah nu
 
iphone la varuthu
same url we are using in android
postman rest api la string pota correct ah varuthu
response
string chinatha iruntha mattum response varuthu
01-22 12:26:42.166: I/System.out(12015): response from {"fid":"682","filename":"sample_0.jpeg","filepath":"sites/default/files/sample_0‌​.jpeg","uri":"https://cloud.entappia.com/rest/file/682"}
json.put("file", "iVBORw0KGgoAAAANSUhEUgAAAA4AAAA=");
json.put("filename", "sample.jpeg");
json.put("filesize", 16);
json.put("uid", 4);
ipadi iruntha mattum varuthu
which means chinatha
 
6:54 AM
@malavika athula problem ah irukathu. it shoudl work. vera ethavathu error varutha?
 
ilaye
base 64 conversion correct ah?
 
@malavika hm correct than
 
vera ena problem irukum?
 
@malavika small size image ah upload pni parunga work aguthanu.
small size image ku work aguthuna. . lets compress the image and we can send
 
hm icon koda anupi pathuten it wont work
ic_launcher m try paniten
 
7:03 AM
@malavika apa 2 possibility than enakku therinchu. url ah check pnunga. ilana send pnura log ah print pni parunga correct ah nu.
 
ok
 
7:27 AM
@malavika compress image as low quality
bm.compress(Bitmap.CompressFormat.JPEG, 10 , bos);
it will give small string
 
@mohan it wont look good
 
@TamilselvanKalimuthu yes ji just for testing purpose
 
try {
InputStream is2 = getContentResolver().openInputStream(f);
Bitmap bmb = BitmapFactory.decodeStream(is2);
is2.close();
BitmapFactory.Options o = new BitmapFactory.Options();
o.inDensity = 96;
o.outWidth = bmb.getWidth();
o.outHeight = bmb.getHeight();
o.inScaled = false;
bmb.recycle();
final int REQUIRED_SIZE = 300;
int scale = 1;
while (o.outWidth / scale / 2 >= REQUIRED_SIZE
&& o.outHeight / scale / 2 >= REQUIRED_SIZE)
scale *= 2;

o.inSampleSize = scale;
o.inScaled = false;
InputStream is = getContentResolver().openInputStream(f);
 
 
4 hours later…
11:26 AM
bye all
 

« first day (1044 days earlier)      last day (292 days later) »