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. Resource assembly on CD

Resource assembly on CD

Scheduled Pinned Locked Moved C#
csharpquestionlearning
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.
  • G Offline
    G Offline
    gnjunge
    wrote on last edited by
    #1

    Hi, I'm creating a C# win app with a rather large Resource Assembly (many small movies), so I don't want the resources to be installed on the harddisk. Rather on runtime I want to extract some resources from the assembly and save it somewhere in a temp dir on the hard disk. After using it, it will be deleted from the harddisk. Is it possible to access resource assemblies that reside on a CD? and if yes how? If no, what would be another good way to store these resources on the disk, but not in a way that just any user can copy the movies from the disk and distribute them without our permission? Thanks!!

    B 1 Reply Last reply
    0
    • G gnjunge

      Hi, I'm creating a C# win app with a rather large Resource Assembly (many small movies), so I don't want the resources to be installed on the harddisk. Rather on runtime I want to extract some resources from the assembly and save it somewhere in a temp dir on the hard disk. After using it, it will be deleted from the harddisk. Is it possible to access resource assemblies that reside on a CD? and if yes how? If no, what would be another good way to store these resources on the disk, but not in a way that just any user can copy the movies from the disk and distribute them without our permission? Thanks!!

      B Offline
      B Offline
      Bojan Rajkovic
      wrote on last edited by
      #2

      You say they're videos..If the routines you're using to play them are capable of taking byte[]'s, you could store the videos in an arbitrary binary format....What I mean is you can perhaps create a struct that holds a string describing the video and a byte[] that has the actual video data, then serialize that out to a binary file...Your customers would probably have a hard time getting anything out of that.

      G 1 Reply Last reply
      0
      • B Bojan Rajkovic

        You say they're videos..If the routines you're using to play them are capable of taking byte[]'s, you could store the videos in an arbitrary binary format....What I mean is you can perhaps create a struct that holds a string describing the video and a byte[] that has the actual video data, then serialize that out to a binary file...Your customers would probably have a hard time getting anything out of that.

        G Offline
        G Offline
        gnjunge
        wrote on last edited by
        #3

        Great, I'll give it a try.

        A 1 Reply Last reply
        0
        • G gnjunge

          Great, I'll give it a try.

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          If you get stuck with serializing the struct's out to a binary file, I can help you with some marshalling code that will give you a byte[] from pretty much anything. :) --SeveredCross

          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