Stream com DatSnap Rest

Delphi

04/04/2016

Bom dia galera,

seguinte, estava realizando uns testes com Client VCL e DataSnap Rest/Json.
Fiz uma classe simples,

TMInhaClasse = class
strict private
FiInteiro: Integer;
FsTexto: string;
FoStream: TByteStream;
public
....
end;

E em cima dessa classe tento trafegar os dados entre server/client usando marshal/unmarshal.
Tanto o int quando o string funcionaram de boa, mas o stream não, nao consigo trafegar o tipo stream, alguem sabe me dizer como posso fazer isso?

Obs.: Ele não da erro nenhum de conversão entre Json/Objeto, mas o FMemory vem como nil. Se eu faço o Marshal/Unmarshal na mesma aplicação client ele funciona, só da esse problema quando tento trafegar entre client/server.

Obrigado galera.
Hugo Silva

Hugo Silva

Curtidas 0

Mais Respostas

Hugo Silva

Hugo Silva

04/04/2016

Ninguem?
GOSTEI 0
Hugo Silva

Hugo Silva

04/04/2016

Up! Galera
GOSTEI 0
Annie Gilson

Annie Gilson

04/04/2016

As usual superb post! Your providing insights are creative and effective always for everyone. thank you Please click batman coat
GOSTEI 0
Raylan Zibel

Raylan Zibel

04/04/2016

É um tipo de dado que você conseguiria transmitir como, por exemplo, base64?
GOSTEI 0
Hugo Silva

Hugo Silva

04/04/2016

Isso mesmo posso transmiti-lo como base64 sem problemas, pois o mesmo é herdado de TMemoryStream.
GOSTEI 0
Stan Lopes

Stan Lopes

04/04/2016

Isso mesmo posso transmiti-lo como base64 sem problemas, pois o mesmo é herdado de TMemoryStream.


Boa noite Hugo, você conseguiu avançar com essa situação? Estou tendo a mesma dificuldade e ainda estou com essa pendencia.
GOSTEI 0
Annie Gilson

Annie Gilson

04/04/2016

Creative reading! This is one of your certain approached in writing field and very insightful for everyone.
www.newamericanjackets.com
GOSTEI 0
Tanktrouble

Tanktrouble

04/04/2016

I know how it's an awesome game so I real want to Play it haha :) :)
http://tanktrouble6.com
http://bejeweledfull.com
GOSTEI 0
Tanktrouble

Tanktrouble

04/04/2016

I know how it's an awesome game so I real want to Play it haha :) :)
<a href="http://tanktrouble6.com">tank trouble</a>
<a href="http://bejeweledfull.com">bejeweled</a>
GOSTEI 0
Tone Costa.

Tone Costa.

04/04/2016

Eu tenho agora parecido, que é transmitir uma imagem.

Para resolver o problema eu converto a imagem para base64 atraves do component da indy e gero o json dela.

no cliente eu recebo a variavel base64 e converto ela novamente em imagem
GOSTEI 0
Patriciadbab

Patriciadbab

04/04/2016

Thank you so much admin, while giving us the opportunity to take their link on this forum
[url=http://bottleflip.co]bottle flip[/url]
GOSTEI 0
Rebeccahickshq

Rebeccahickshq

04/04/2016

Behind the sunny days, there will be rain and rain, so never lose faith, and keep walking, going to the end of your path.
[url]http://supersmashflash-2.com[/url]
[url]http://bloonstowerdefense5game.com[/url]
GOSTEI 0
Matt Brown

Matt Brown

04/04/2016

Thanks for sharing nice information with us. i like your post and all you share with us is up-to-date and quite informative, I would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. contact Kaspersky http://www.antivirus-number.com/mcafee-support/ norton technical support phone number
GOSTEI 0
POSTAR