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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:00:20+00:00 2026-05-22T00:00:20+00:00

Ok, I have an API I use that holds a scene file in a

  • 0

Ok, I have an API I use that holds a scene file in a dotnet project. I pass it params that adds images to a final image that is rendered out on a webpage. i.e. myserver/GetImage.ashx?param1=value1 which I use link to display an image that is dynamically rendered on my webpage. Value1 = myserver/images/myimage.jpg

My problem is I need to be able to take the result and run it back through the API, so value1 cannot equal myserver/GetImage.ashx?param1=myserver/images/myimage.jpg.

My question is, how can I redirect or store the first result in PHP as FinalRender.jpg to run it back through the API, so it would look like myserver/GetImage.ashx?FinalRender.jpg?

I am totally lost so any help would be very appreciated.

  • 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-22T00:00:21+00:00Added an answer on May 22, 2026 at 12:00 am

    Ok, I figured it out.

    I created a session ID:

    $a = session_id();
    if(empty($a)) session_start();
    

    then I grabbed the API image by the HTML ID as shown below:

    $a = session_id();
    
    
    $api_url = 'imgtest2.php';  
    $dom = new DOMDocument();
    if (@$dom->loadHTMLFile($api_url)) { 
      $img_tag = $dom->getElementById('render'); 
      $src = $img_tag->getAttribute('src'); 
      $img_content = file_get_contents($src); 
      file_put_contents('user/' . $a . "/" . $a . '.jpg', $img_content);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use the phpflickr api for a project and I have a weird problem
I have a table that holds data received from a thirdparty via an api
I have a VS2008 C++ program where I'm wrapping a C API for use
Right now I have been trying to use Launchpad's API to write a small
I have an API that can be implemented by various vendors. I can send
I have an API in the form of a JAR that I would like
I have an API that returns a promise from a deferred object. The problem
I have an API call that returns a byte array. I currently stream the
I have a api app that sits behind a few client facing apps. The
I have a web API that returns python dictionaries or lists as a response

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.