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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:07:50+00:00 2026-06-08T04:07:50+00:00

Anyone know any ways or tutorials to store photos retrieved by php(not the link

  • 0

Anyone know any ways or tutorials to store photos retrieved by php(not the link of the photo), in client/browser side for further photo editing? Thanks.

Edit: Actually, I am trying to create facebook apps that do photo editing. I already retrieve facebook photo and I want to let user edit the photo multiple times before they decided to save and upload the edited photo back to facebook.
While user is editing,I need a way to store original photo and edited photos in somewhere before user decided to save. I don’t want to save the edited photos in the server storage every time user change something as it might be heavy for the server.
So,I want original photo and edited photos to store in somewhere that is not on server storage. Is it possible?
I am using php gd and am pretty new to web programming.

Please help. Thx a lot.

  • 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-08T04:07:52+00:00Added an answer on June 8, 2026 at 4:07 am

    You are probably looking for a way to force a download of a file instead of displaying it.

    Try using this before sending the photo-binary:

    $datei = 'filename.jpg';
    
    header("Expires: 0"); 
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
    header("Content-Type: application/force-download"); 
    header("Content-Description: File Transfer"); 
    header("Content-Disposition: attachment; filename=$datei"); 
    header("Content-Transfer-Encoding: binary"); 
    
    //Output image here (for example by using imagepng() when using gd)
    

    Edit:
    You can’t save an image to the user’s browser and then retrieve it easily with your server application. You will need to store it on the server. If your server’s space is limited you might want to look into cloud-hosting services like Amazon S3 where you can put literally unlimited images for a small cost providing you delete them afterwards and clobber the space.

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

Sidebar

Related Questions

I am looking for JQuery or any other ways to store data on client-side
Possible Duplicate: PHP: Script for generating Crossword game? Does anyone know any PHP-based simple
Does anyone know of any simpler ways of building completely balanced trees in Prolog?
Does anyone know any good resources with tasks or problems to get practice in
Does anyone know any site or book that presents problems like python challenge ,
Does anyone know any more details about google's web-crawler (aka GoogleBot)? I was curious
does anyone know any sort of app that lets users visit a page on
Does anyone know any open source project or adapter for MySQL-AdWhirl? We try to
Does anyone know any bugs/tricks when using scale_colour_manual to set colors to predefined settings
Is it possible? Align the text fully justified? Does anyone know any hack or

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.