android - How to compress Ti.utils.base64encode and decompress using .Net method? -
Does anyone know how to use Ti? For example, I have this code:
uploadFile = Ti.Filesystem.getFile (pathfile, listing [_fileCtr] .toString ()); UploadFileName = Listing [_fileCtr] .toString (); Encoded file = ti.tel.base 64xode (upload file.read ()). ToString (); // Send image to Net Web Service
and for titling decompressing the image it is the method in my web services (if I can compress my image before):
{Gyzipstream zip = new gzipstream (output, compression mode. Decompress) using the[byte [] input) {(memorystream output = new memorystream) {list & lt; Byte & gt; Bytes = new list & lt; Byte & gt; (); Int b = ZIP Redbyte (); While (b! = -1) {bytesad (byte) b); B = zip Redbyte (); } Return bytes. ToArray (); }}
So far, I can not find some method to compress my byte array, so I can decompress them using my .NET method. If u guys If you have any information about the problem, please tell me ..
Many thanks .. :)
In the net, you can use the converting string to convert binary data into base-64 digits as ambe S is, in the same 8-bit unsigned integer array.
Comments
Post a Comment