Re: Can MarshalByRefObject object be transformed into a byte[] array?
From: BBFrost (barry.b.frost_at_remove_this.wrd.state.or.us)
Date: 03/01/05
- Next message: SB: "Re: Where are the C# DirectX Samples in the latest DirectX 9.0 Feb"
- Previous message: Mike P: "Re: Where are the C# DirectX Samples in the latest DirectX 9.0 Feb"
- In reply to: Alexander Shirshov: "Re: Can MarshalByRefObject object be transformed into a byte[] array?"
- Next in thread: Alexander Shirshov: "Re: Can MarshalByRefObject object be transformed into a byte[] array?"
- Reply: Alexander Shirshov: "Re: Can MarshalByRefObject object be transformed into a byte[] array?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Mar 2005 07:28:52 -0800
Alexander,
Thanks for quick the reply. Its very much appreciated. At
this point I'm desparate for any help at all.
Unfortunately, I can't seem to get to the link you posted
below. However, a quick search around the web lead to
a number of interesting examples of "Serialization". With
your help I now have a focus for my R&D efforts. :)
For instance.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemruntimeserializationiserializableclassgetobjectdatatopic.asp
To answer your question about what we hope to do with
the byte[] array afterwards, we have a large archive of
PDF format documents stored in our database.
I need to convert the PDF document extracted from the Acrobat
Scanning process into a byte[] array before I can insert it
as a blob into our database.
We developed technology years ago that automated Adobe Acrobat
from our C# data entry application. Because of our lack of
sophistication / knowledge of interop practices we ended up
passing documents back and forth between Acrobat & our data
entry application by using a temporary .pdf file on the local
hard drive. The temporary file approach has worked, but it
leaves a lot to be desired. As a result I'm trying to figure
out if there's a way to pass PDF documents back and forth
directly between Acrobat and C#. Being able to retrieve
scanned documents directly from Acrobat would save us a
tremendous amount of problematic 'Rube Goldberg' style
code.
You can see an example of our PDF doc archive by clicking on the
12345 certificate number at the following URL.
http://apps.wrd.state.or.us/apps/wr/wrinfo/wrinfo.php?search_type=SNPID&snpi
d=64734
Again ... thanks!
Barry
in Oregon
"Alexander Shirshov" <alexander@omnitalented.com> wrote in message
news:Oy5ih6fHFHA.3244@TK2MSFTNGP09.phx.gbl...
> Barry,
>
> What you need is called "Serialization". I gave an example of how to
> serialize an object here:
>
http://groups.google.co.th/groups?hl=en&lr=&threadm=umoFcVXHFHA.3148%40TK2MS
FTNGP14.phx.gbl&rnum=1&prev=/groups%3Fq%3DAlexander%2Bserializable%26hl%3Den
%26lr%3D%26scoring%3Dd%26selm%3DumoFcVXHFHA.3148%2540TK2MSFTNGP14.phx.gbl%26
rnum%3D1
>
> Please note that each class controls it's own
serialization/deserialization,
> and depending on what Acrobat programmers decided you might not get the
> complete copy of the object (or even a single byte!).
>
> Anyway, what are you going to do with those bytes?
>
> HTH,
> Alexander Shirshov
>
>
>
> "BBFrost" <barry.b.frost@remove_this.wrd.state.or.us> wrote in message
> news:%23K0NjxfHFHA.1172@TK2MSFTNGP12.phx.gbl...
> > I'm not having much success from the interop group. So I'm going to
> > crosspost and hope I don't get flamed too badly
> >
> > Disclaimer - I don't know much at all about Marshalling and Reflection.
> >
> > THE QUESTION: Is it possible to transform a MarshalByRefObject object
into
> > a
> > byte[] array? If so, will someone point me at a documentation reference
> > or
> > better yet a snippet of example code ??
> >
> > The MarshalByRefObject in this case is a PDF document extracted from
> > Acrobat's GetActiveDoc( )
> > method.
> >
> > I'm hoping there's a way to do this... unfortunately I havn't
> > stumbled across an example or document that provides the hint(s) I need.
> >
> > Any help would be very much appreciated. I've been hung since last week
> > trying to guess at different incantations.
> >
> > Thanks in advance.
> >
> > Barry
> > in Oregon
> >
> >
>
>
- Next message: SB: "Re: Where are the C# DirectX Samples in the latest DirectX 9.0 Feb"
- Previous message: Mike P: "Re: Where are the C# DirectX Samples in the latest DirectX 9.0 Feb"
- In reply to: Alexander Shirshov: "Re: Can MarshalByRefObject object be transformed into a byte[] array?"
- Next in thread: Alexander Shirshov: "Re: Can MarshalByRefObject object be transformed into a byte[] array?"
- Reply: Alexander Shirshov: "Re: Can MarshalByRefObject object be transformed into a byte[] array?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|