Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Roman Mellenberger 14 posts 32 karma points
    Aug 12, 2013 @ 17:27
    Roman Mellenberger
    0

    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

  • Mike Chambers 636 posts 1253 karma points c-trib
    Aug 13, 2013 @ 10:34
    Mike Chambers
    0

    Server.MapPath(DynamicNode.Url) ????

  • Roman Mellenberger 14 posts 32 karma points
    Aug 13, 2013 @ 11:46
    Roman Mellenberger
    0

    Yep - i will end up here. Is it a good practice to get images directly from its file path?

    Thanks anyway...

  • Mike Chambers 636 posts 1253 karma points c-trib
    Aug 13, 2013 @ 11:55
    Mike Chambers
    0

    Depends I guess what you are wanting to do with the image?

  • aciamge 2 posts 22 karma points
    Oct 14, 2013 @ 04:47
    aciamge
    0

    i guess you are making the right choice in the path.

Please Sign in or register to post replies

Write your reply to:

Draft