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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...