I am developing mobile application using flex 4 , for server communication I am using java Web-services. Actually I need to transfer the files from server to mobile and mobile to server. When I do this operation, my application became very slow. So I planned to compress the file and send. But when I use GZIPOutputStream or ZIPOutputStream for compression , it’s just compress the file as .zip. Couldn’t reduce much file size. But I need to reduce the file size as much as low. The file format may be image, video or audio. Kindly anyone suggest some ideas to do this operation using java.
I am developing mobile application using flex 4 , for server communication I am
Share
You asked us to suggest some ideas. Good,. I think When you transfer the data through Web Services, you must Convert the data as byte array. I think, you receive entire bytes and convert as a file and then Encode/Decode. so when you try to encode some image or video files you can’t get reduced file size. so here my idea is, better you can encode the data by pocket by pocket using Base64Encoding and Base64Decoding. Means, Convert the file as byte, encode the bytes and send, and receive the byte and decode and then convert as file. I think this should be helps for you.