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 8405363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:50:09+00:00 2026-06-09T22:50:09+00:00

When uploading an image through git to heroku, the image is corrupted when it

  • 0

When uploading an image through git to heroku, the image is corrupted when it gets sent from the web server. I’ve been trying to fix it by going g rm --cached images/contact-me.png and then g add images/contact-me.png again, and then pushing.

Also;

xyz@co-data:~/labs/exposeit-site$ sha1sum images/contact-me.png 
2d319cd64e94afe7cdd169347653670a1dd82581  images/contact-me.png
xyz@co-data:~/labs/exposeit-site$ wget http://exposeit.herokuapp.com/images/contact-me.png
--2012-08-16 16:50:35--  http://exposeit.herokuapp.com/images/contact-me.png
Resolving exposeit.herokuapp.com (exposeit.herokuapp.com)... 50.19.121.246, 174.129.192.155, 184.73.155.93, ...
Connecting to exposeit.herokuapp.com (exposeit.herokuapp.com)|50.19.121.246|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1230115 (1.2M) [image/png]
Saving to: `contact-me.png'

100%[=================================================================================>] 1,230,115    963K/s   in 1.2s    

2012-08-16 16:50:36 (963 KB/s) - `contact-me.png' saved [1230115/1230115]

xyz@co-data:~/labs/exposeit-site$ sha1sum contact-me.png 
74d97745d35bb67e5517611b683ed461bd0c1686  contact-me.png

and

xyz@co-data:~/labs/exposeit-site$ g ls-files | grep contact-me
images/contact-me.png

Is this a problem of Heroku’s?

Update:

Procfile:

web:  bundle exec thin start -R config.ru -e $RACK_ENV -p $PORT 
  • 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-06-09T22:50:10+00:00Added an answer on June 9, 2026 at 10:50 pm

    So the answer is that the thin gem has a bug that takes string length instead of length of the byte array that is the underlying image. Why it would first be converted to a string, I don’t know.

    The solution is to add, to your Gemfile:

     gem 'rack-jekyll', :git => 'https://github.com/adaoraul/rack-jekyll.git', :require => 'rack/jekyll'
    

    …and it will be downloaded from github rather than RubyGems.

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

Sidebar

Related Questions

I'm trying to rename an image when uploading it to my server. Is there
I am uploading image to server using base64 its working fine if image is
I am uploading an image. When I run application from eclipse on my device
What I am trying to do is post an image that has been created
Part of my webapp involves uploading image files. On the production server, the files
I'm working on a project that involves uploading an image to tumblr from Python.
I am uploading an image to amazon S3 using php through webservice but it
I am trying to upload an image to the server (with a path in
I am trying to upload an image through my application with Facebook Graph API
i want to upload an image from the client's system, through javascript and store

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.