1

I simply try to convert "~/Telerik.Web.UI.WebResource.axd?imgid=310aa01d42ba47e1af090c60b520dd8e&type=rbi" this path to physical path.

I simply tried below code but it throws Exception and says "Illegal characters in path".

Server.MapPath("~/Telerik.Web.UI.WebResource.axd?imgid=310aa01d42ba47e1af090c60b520dd8e&type=rbi") 

I am not exactly sure it is possible to do that or not.

Edit: I actualy have RadBinaryImage That holds the url. I want to have byte array from RadBinaryImage and this is what i try to access file.

0

3 Answers 3

1

Try

Server.MapPath("~/Telerik.Web.UI.WebResource.axd") + "?imgid=310aa01d42ba47e1af090c60b520dd8e&type=rbi)"
Sign up to request clarification or add additional context in comments.

Comments

0

How about [control].ResolveUrl instead?

MapMath is looking for a file, which & is not accepted in a file path. You're just looking to get the "absolute URL" (or at least one that's folder agnostic) that the client can use.

3 Comments

Hey i actualy have RadBinaryImage control that holds that url. The thing i want to have Byte Array of image. Is there a quick way ?
So you want, from that relative URL, to make a pseudo-client call and retrieve the data (image) back as a byte[]?
@AnyOne: Take a look at this question as it may be of some help.
0

Telerik.Web.UI.WebResource.axd is not physical resource, so it hasn't an equivalent on disk. Probably is loaded/readed from a dll by its corresponding handler.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.