07-14-2011 05:47 AM
I have image which I read from stream and use EncodedImage to scale image.
Thats OK,but I want to get byte array of scaled image.When I use getData() function of EncodedImage it returns not scaled data,because when I try draw it draw big image not scaled one.
I need all this because I'm sending image to server and that server accepts only jpeg,png,gif image types.Thats why when I scale image and get scaled bitmap it's OK,and even OK to convert that bitmap back to byte array,and OK when I send that byte array to server,but but but server doesn't accept it.Alternative when I just send the not converted to bitmap and after back to array all seems to work.
Can anybody help how to get resized image from byte array,because scale method as I understand works only with Bitmap.
p.s sorry for bad english
07-14-2011 05:54 AM
07-14-2011 06:05 AM
sorry but if it was resised I wouldn't asked that question however I foun solution.If anyone interests it is here
kishor273 reply which marked as answer is working.Thanks kishor.