« Return to Thread: Strange thing with creation of a file on the fly

Re: Strange thing with creation of a file on the fly

by bilcorry :: Rate this Message:

Reply to Author | View in Thread

Jeremy Reynolds wrote on 6/30/2009 1:51 PM:

> I'm working with FedEx to generate labels using XML.  The label is
> returned to me in the form of an "encrypted" string.  If I decrypt the
> string and create a file directly off the string, it creates it just
> fine.
>
>
> [var: 'PDF_File'=(Decode_Base64: $extracted_label)]
> [File_Serve: $PDF_File, -type='application/pdf', -File='filename.pdf',
> -disposition='Inline']
>
>
> However, if I were to take the $PDF_File value and store it in a
> FileMaker field... come back to it later, retried the value and then
> try to generate a file off of it, it fails to create it correctly and
> says the file is corrupted.  I'm guessing some special character
> (possibly the EOF character???) gets lost when it passes through the
> FileMaker field??  Anybody have any insight or experience into this
> kind of problem??

Store the $extracted_label in Filemaker.  Since it's Base64 encoded, you won't have odd binary issues.  Then when you pull it out of Filemaker, use decode_base64 on it.


- Bil



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


 « Return to Thread: Strange thing with creation of a file on the fly