For Programmers: Free Programming Magazines  


Home > Archive > C# > January 2005 > how to return Assembly Resource segment to Byte









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to return Assembly Resource segment to Byte
brianbender77@hotmail.com

2005-01-28, 4:00 pm

I have a resource file manually added and embedded to a project.

With the ResourceManager and Resource Reader it seems the only way to
access the segments in a resource file are by using GetObject() and
getString().

I am trying to iterate through a resource file and return the segment
as a byte[] and not an object.

I have been successful returning the whole resource file as a byte[]
using the Assembly.GetManifestResourceStream(), however I do not want
the whole resource file, only a specific segment previously added.

when I grab the object using ResourceManager.getObject() and convert it
into a byte[], the size differs.

thus I am stuck. Please advise...

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com