Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decoding a document
Message
De
10/09/1999 12:52:08
 
 
À
10/09/1999 10:24:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00262329
Message ID:
00263416
Vues:
25
>>>We are trying to share the same data and documents from a standalone exe that could be distributed on a CD , while at the same time they are accessed through a VFox5 DCOM/Intranet configuration.
>>>
>>>All is well except for security. We have secure pdf documents on a CD/Server that will only be decrypted through the software once a password has been entered. As the layout of the documents are identical for the the intranet - we have a problem.
>>>
>>>How can I secure the documents in a way that they culd be decrypted/accessed from a CD in a similar way as through a DCOM?
>>>
>>>Am I going about this the right way??
>>>
>>>Any help/ideas would be most welcome
>>>
>>>Jason
>>
>>How are you encrypting/decrypting them? If it is happening live in the software, all you need to do is decrypt to a string and then write that string to a file in the temp directory.
>
>
>It is software encryption/decryption. The CD application currently decodes to the temp directory and opens the PDF with the viewer. How would you incorporate this through DCOM and send the PDF back for the browser to open the viewer.
>
>The document is currently opened by passing a series of titles/hypertext links back to the browser which the user then clicks and the browser does the rest...
>
>I just can't perceive how the DCOM could decode and return a pdf back to the browser which is then opened by the viewer.

The server object has to read the text file into a string and return the string with an HTTP header setting the content type with a line like this:

"Content-type: application/pdf"

This line replaces the normal text/html content type contained in a normal HTML reponse.

The content type is what the browser uses to know how to deal with the binary content in the response. So if you want need to return a word document or excel spreadsheet from a string, you can do it the same way, just use their respective content types as found in your registry under their extensions in HKEY_CLASSES_ROOT.

HTH
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform