Computing.Net > Forums > Programming > Copying file from resource (C#)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Copying file from resource (C#)

Reply to Message Icon

Name: El-Trucha
Date: April 4, 2005 at 09:33:40 Pacific
OS: Windows XP SP2
CPU/Ram: 2.8 GHz/448 MB
Comment:

Hello every1!! :D
My question's simple, how do I copy a file that I embedded in my program with the /res: parameter in csc.exe??
I want to copy this file to the hard drive, the file is a JPG image file...
How??
Thanx!! ;)

El-Trucha
http://www.truchasoft.tk
ftp://tsfc.homeftp.net
hotline://tsfc.ath.cx



Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: April 5, 2005 at 00:58:31 Pacific
Reply:

If the image is embedded and at the end, then you will have to find the beginning of the image and then read to the end of the file and copy to the save file. If the file is in the middle then you will have to decode the image header to find the size of the image.


0

Response Number 2
Name: El-Trucha
Date: April 8, 2005 at 12:42:54 Pacific
Reply:

Uhh...I don't understand what you're talkin about...I'm embedding the file with the /res: parameter...and you're saying that I have to put the imabge at the end of my program...can I do this from CSC.EXE?? this program's code is automatically generated, and then compiled with the image embedded in it...
What can I do??
Thanx!! ;)

El-Trucha
http://www.truchasoft.tk
ftp://tsfc.homeftp.net
hotline://tsfc.ath.cx


0

Response Number 3
Name: wizard-fred
Date: April 8, 2005 at 13:52:45 Pacific
Reply:

Sorry, I misunderstood your question. I thought you wanted to extract an embedded image. I don't know where it goes or what is done when it is used as a resource for CSC.


0

Response Number 4
Name: El-Trucha
Date: April 9, 2005 at 19:00:49 Pacific
Reply:

Ohh...ok, but thanx anyways!! ;)

El-Trucha
http://www.truchasoft.tk
ftp://tsfc.homeftp.net
hotline://tsfc.ath.cx


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


VB6 and MS Access dsauth.dll question



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Copying file from resource (C#)

Copy files from mult. subfolders www.computing.net/answers/programming/copy-files-from-mult-subfolders/13105.html

script to copy files from a server www.computing.net/answers/programming/script-to-copy-files-from-a-server-/16825.html

Copying files from one driver hive to another www.computing.net/answers/programming/copying-files-from-one-driver-hive-to-another/18970.html