Re: Can MarshalByRefObject object be transformed into a byte[] array?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: BBFrost (barry.b.frost_at_remove_this.wrd.state.or.us)
Date: 03/01/05


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
> >
> >
>
>



Relevant Pages

  • Re: Automation Questions
    ... >>Once I solve the problem with Acrobat forms, I will move to Designer. ... the field names and data types must be extracted directly from ... I can parse the PDF document myself, ...
    (comp.text.pdf)
  • Re: Adobe/word question.
    ... >>Is it possible to convert a PDF document to a word document? ... No, just Adobe 7.0 ... Fsck if I know why I deleted Acrobat. ... news readers still work...Adobe is down the drain...ARC PowerChute does ...
    (alt.2600)
  • Re: [Full-disclosure] PDF mailto exploit in the wild
    ... Modify tSchemePerms by setting the mailto: value to 3: ... And now I'm having heart palpitations ... ... would anyone want their PDF document to be able to do that? ... "Lets get all our users accustomed to the sight of Acrobat ...
    (Full-Disclosure)
  • Re: OT: Document Security
    ... Now I thought you could do it in Acrobat ... I can edit any PDF document and change it. ... I can take my suppliers ... price costs and then alter the prices and use them as my prices if I wanted ...
    (uk.comp.homebuilt)
  • Re: Can MarshalByRefObject object be transformed into a byte[] array?
    ... forget about serialization then :-). ... objects into bytes, and you're working with Acrobat API, right? ... depends on how Acrobat API returns those scanned documents. ...
    (microsoft.public.dotnet.languages.csharp)