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

  • Home
  • SEARCH
  • 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 7792003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:03:56+00:00 2026-06-01T22:03:56+00:00

Hi i want to send url with hash of image source.How can do it

  • 0

Hi i want to send url with hash of image source.How can do it ?

Code :

Image img_ = new Image();          
img_.ImageUrl = "ShowImageInRuntime.aspx?FileName=C://Images//Image.jpg";

i dont want to see my local path in page.Thx for your help

  • 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-01T22:03:57+00:00Added an answer on June 1, 2026 at 10:03 pm

    You need either perform encryption of the path and base 64 encode before sending and do the reverse in the handler.

    Other option is to maintain a mapping XML where the XML would contain the path and corresponding identifier. In your application get the node with the path and pick the id and send append it to url. In the handler do the reverse to fetch the path.

    UPDATE : Adding Sample code

    XML file with GUID as ID and corresponding fileName. by using guid, people cannot guess the random ids easily.

    <?xml version="1.0" encoding="utf-8" ?>
    <mappings>
      <map id="485D9075B9CA4d8d9DBA1AD9CD09FC13" fileName="c:\images\image1.jpg"/>
      <map id="475D4A22B1FA4eda8234007BD327D7B9" fileName="c:\images\image2.jpg"/>
      <map id="77623BF3094440c49AC65CEF76D1B824" fileName="c:\images\image3.jpg"/>
    </mappings>
    

    Using LINQ to XML

    public class ImageMapper
    {
        private XDocument Document { get; set; }
    
        public ImageMapManager()
        {
            Document = XDocument.Load("Map.xml");
        }
    
        public string GetFileNameFromId(string id)
        {
            var result = from node in Document.Descendants("map")
                         where node.Attribute("id").Value.Equals(id, StringComparison.InvariantCultureIgnoreCase)
                         select node.Attribute("fileName").Value;
            return (result == null || result.Count() == 0) ? null : result.ElementAt(0);
        }
        public string GetIdFromFileName(string fileName)
        {
            var result = from node in Document.Descendants("map")
                         where node.Attribute("fileName").Value.Equals(fileName, StringComparison.InvariantCultureIgnoreCase)
                         select node.Attribute("id").Value;
            return (result == null || result.Count() == 0) ? null : result.ElementAt(0);
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send data through URL.I've tried the below code: Intent browserIntent =
I want to send a hash string to my php file. but failed, can
this is my ajax post code on Default.aspx's source side: $.ajax({ type: POST, url:
I want to send this url from an android class to my servlet. I
In python, I want to send a request to a url which will return
So all I want to do is send a POST request to a url.
I want send e-mail with some images in content. I think I must attached
Ok i want to send a complete url to a php file which also
I want to send some raw data to a subdomain of mine: $.ajax({ url:
I want to send parameters with url , I try these both ways First

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.