Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Convert byte array to file, then open it ot its default application

Convert byte array to file, then open it ot its default application

Scheduled Pinned Locked Moved C#
data-structuresperformancehelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    spy
    wrote on last edited by
    #1

    hi guys, how will i convert byte array to a file, then open it. i searched the internet, but they usually create the file first then save it to their local disk, before opening... i just want to open the file(from byte array) from virtual memory.. is it possible? i need your help badly.. thanks guys..

    C P 3 Replies Last reply
    0
    • S spy

      hi guys, how will i convert byte array to a file, then open it. i searched the internet, but they usually create the file first then save it to their local disk, before opening... i just want to open the file(from byte array) from virtual memory.. is it possible? i need your help badly.. thanks guys..

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      File.WriteAllBytes creates a file. Is that what you mean ?

      Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

      1 Reply Last reply
      0
      • S spy

        hi guys, how will i convert byte array to a file, then open it. i searched the internet, but they usually create the file first then save it to their local disk, before opening... i just want to open the file(from byte array) from virtual memory.. is it possible? i need your help badly.. thanks guys..

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        -spy- wrote:

        need your help badly..

        But not badly enough to answer someone who is trying to help you ? Well, great.

        Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

        1 Reply Last reply
        0
        • S spy

          hi guys, how will i convert byte array to a file, then open it. i searched the internet, but they usually create the file first then save it to their local disk, before opening... i just want to open the file(from byte array) from virtual memory.. is it possible? i need your help badly.. thanks guys..

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          If it's not on disk it's not a file. :-D Once written to disk you can use Process.Start to "open" it with its associated application. That's what I do.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups