Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6726021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:52:37+00:00 2026-05-26T09:52:37+00:00

I have found a very strange occurrence in Android. I have found that when

  • 0

I have found a very strange occurrence in Android. I have found that when downloading an image over 3g the sha1 computed afterwards is different than what it should have been occording to the file that is on the server. Upon further investigation, I found that the image was actually down sized and re-encoded. It would appear that my mobile carrier (verizon) is trying to optimize files that I’m downloading.

My question is, can anyone else confirm that mobile networks might optimize your file before it lands on your device? And if so, is there a setting somewhere somehow so that I can disable this.

It’s very important in my app to know that the file’s sha1 of what I’ve downloaded equals what the server says it should be.

Here’s an article found about verizon optimizing 3g transfers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:52:37+00:00Added an answer on May 26, 2026 at 9:52 am

    You didn’t say, but let’s assume this is an HTTP connection.

    In short, they are doing it to save bandwidth. 3G isn’t Free!

    If you are directly requesting resources (GET), then you are at the mercy of all intermediaries that process the HTTP response (i.e. proxies, gateways), and you can be sure they can see the MIME type in the headers, and behave accordingly.

    You can try using the HTTP Accept header in your request, and use the q parameter to “hint” that you want maximum fidelity.

    http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

    Accept: image/png;q=1
    

    The q ranges from 0 to 1. You may be able to get away with a lower value (than 1). Please read the linked section for more details.

    You can also inspect the incoming Content-Type header; it may reveal if there’s a “declared” change in quality or even MIME type. It may be telling you what it did!

    It would be excellent if the “standard” does its job for you!

    If that doesn’t work, and you are in control of the server end already, use an alternate text-based encoding for it, like Base64, that intermediaries cannot “compress” for you. SOAP has been doing that since ever!

    If you really really need to bypass image compression, and Accept doesn’t work, you must proxy those kinds of requests yourself, and re-encode them with a non-image MIME type in the response.

    If you are going the self-proxy route, you could probably get away with calling your images application/octect-stream which is the MIME type for “uninterpreted bytes”. This would allow for more-or-less pass-through of the data, and hopefully keep intermediaries “helping hands” off your stuff!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running into a very strange issue that I have found no explanation for
We have encountered a very strange class not found problem in our web app
I have found that my HTML is, to be honest, very clunky. Small, simple
I have a very simple MVC site that is returning a 404 not found
I have a very strange error happening in an App that has been working
I'm trying to visualize Mandelbrot set with OpenGL and have found very strange behaviour
I am stuck onto a very strange situation. I have a workflow that i
I have a very strange issue that only affects webkit browsers for some reason,
I have a very strange issue, that I'm hoping someone here can help me
One thing I have continually found very confusing about using an object database like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.