Datasnap - passing a TmemoryStream

Posted on 2010-01-02
Last Modified: 2013-11-23
Question: in D2010 - I have  TMemoryStream  on both client and server ends.

After generating the Datasnap client classes, I tried to convert TMemoryStream to TStream so it can be passed between client/server, but in gettign errors on the conversion.
Is there any way to either:
1. convert TmemoryStream to TBytes or TStream so it can be transported?
2. wrap a TmemoryStream so it can be transfered as a TDBXValue?

if it makes a difference.. the transport is TCP. http will not be used
Question by:controlr
    LVL 9

    Accepted Solution

    Hi, controlr!
    Take a look at this forum thread
    Seems addressing your issue.

    wbr, mocarts

    Author Comment

    perfect! thanks

    Author Closing Comment


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Intraweb submit form as a POST request 4 186
    indy tidtcpclient threading issue 8 46
    delphi exception 7 54
    Reconfigure Delphi Install? 2 19
    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now