Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I wonder if I can get a byte stream out of an image in a razor script. If I could access the file I would do like this:
File.ReadAllBytes(Filename);
But there is no physical path in the DynamicNode object...
Thanks for any ideas
Server.MapPath(DynamicNode.Url) ????
Yep - i will end up here. Is it a good practice to get images directly from its file path?
Thanks anyway...
Depends I guess what you are wanting to do with the image?
i guess you are making the right choice in the path.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Create byte stream from Image
Hi,
I wonder if I can get a byte stream out of an image in a razor script. If I could access the file I would do like this:
File.ReadAllBytes(Filename);
But there is no physical path in the DynamicNode object...
Thanks for any ideas
Server.MapPath(DynamicNode.Url) ????
Yep - i will end up here. Is it a good practice to get images directly from its file path?
Thanks anyway...
Depends I guess what you are wanting to do with the image?
i guess you are making the right choice in the path.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.