I dont understand why you dont just send the raw jpeg data by the time its endoded the entire file in a compression system, then decoded at the other end, it will of defeated the purpose of using compression since the file probably could of been sent without compression quicker than with it