Options

UPLOADINTOSTREAM in RTC

ngebhardngebhard Member Posts: 127
edited 2012-02-12 in NAV Three Tier
Hello everyone,

we used to have a coding to upload a XML-file to a blob field which worked in the classic client. Since some changes were made, we tried to figure it out to get this done in the RTC. The coding is similiar to the one used in the topic viewtopic.php?f=32&t=32458&hilit=CREATEINSTREAM+rtc, so I just copy it from there.

Xml.CREATEINSTREAM(inStr);
filename := 'c:\temp\file.xml'; //threeTier.EnvironFileName('file','xml');
XMLDocIn.save(filename);
UPLOADINTOSTREAM('',threeTier.Magicpath,'',filename,inStr);


If we use this coding, the blob field is still empty and I have no idea why. I am sure that someone already got it to work and it would be very nice if you could help us with this.
Thanks in adance!

Regards
Nicole
ProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt

Comments

  • Options
    sergisoftsergisoft Member Posts: 37
    I have this in a WebService and working:

    p_autXMLSalida: XML automation variable.
    l_outStream: OutStream variable
    l_recTempBLOB: Record to TempBlob table
    CLEAR(l_outStream);
    
    l_recTempBLOB.INIT;
    l_recTempBLOB."Primay Key" := 0;
    l_recTempBLOB.Blob.CREATEOUTSTREAM(l_outStream);
    p_autXMLSalida.save(l_outStream);
    l_recTempBLOB.INSERT;
    

    Sergi Navarro

    MCTS: Microsoft Dynamics™ NAV 2009 C/SIDE Solution Development

    Visit my Navision Spanish Blog here: http://www.sergisoft.com
Sign In or Register to comment.