Leggere e salvare un file

HomePage Forums Coding Leggere e salvare un file

This topic contains 0 replies, has 1 voice, and was last updated by  Mass8 2 months, 2 weeks ago.

  • Creator
    Topic
  • #10312

    Mass8
    Participant

    Buongiorno sto cercando di salvare un file pdf tramite un webservice

    Il webserver mi restituisce un xml così fatto
    <?xml version=”1.0″ encoding=”utf-8″?>
    <Arx_File xmlns=”http://www.Abletech.it/Arxivar”>
    <Estensione>string</Estensione>
    <FileName>string</FileName>
    <CreationDate>dateTime</CreationDate>
    <File>base64Binary</File>
    <Ticket>string</Ticket>
    <Hash_MD5>string</Hash_MD5>
    </Arx_File>
    Nel valore file ho il file vero e proprio.
    Su rpg sto facendo:
    d dataDoc DS
    d Estensione 100A varying
    d FileName 100A varying
    d CreationDate 100A varying
    d FileExtr SQLType(BLOB_FILE)
    d Ticket 100A varying
    d Hash_MD5 100A varying

    c eval FileExtr_Name=’/tmp/ordine.pdf’
    c eval FileExtr_NL=%Len(%TrimR(FileExtr_Name))
    c eval FileExtr_FO=SQFOVR
    *
    *
    C Eval options = ‘path=Arx_File +
    C case=any’
    C monitor
    C XML-INTO dataDoc %xml(response:OPTIONS)
    c on-error
    c endmon

    ma niente viene salvato.

    Cosa sto sbagliando?
    Grazie

You must be logged in to reply to this topic.