Options

InStream combined with .NET

mikmik Member Posts: 79
edited 2014-07-29 in NAV Three Tier
Hi,
after I found the solution for my problem here http://www.mibuso.com/forum/viewtopic.php?f=32&t=62101,
I just found my next "problem". :roll:

It seems that my InStream is running on the client. So if I switch my .NET Globals to RunOnClient=No there is no chance to create an instance of the Stream.

Does anybody had the same problem before?
My plan is to develop an external component which should only be registered on the service machine. As I need to pass some streams to this library I am not sure if I can follow this plan to the end.


Maybe I can find a solution by my own (I will let you know) but I remember that I already had a similar problem some weeks ago which I could not solve.

EDIT: I hope to find a solution where I don't have to work with the filesystem to store a ServerTempFile to read it into a stream on the server.

greetings mik

With kind regards
mik

Comments

  • Options
    thegunzothegunzo Member Posts: 274
    The normal way is to use UPLOAD to send a file to the server and import it from there.

    If the file is small you can use a unlimited size Text variable and convert the instream bitarray to b64 string on the client side and than back to a stream on the server side.
    ________________________________
    Gunnar Gestsson
    Microsoft Certified IT Professional
    Dynamics NAV MVP
    http://www.dynamics.is
    http://Objects4NAV.com
Sign In or Register to comment.