Alguién sabe como se hace esto?
Desde ya muchas gracias

Escrito 17 noviembre 2009 - 12:06
Escrito 17 noviembre 2009 - 08:02
Escrito 09 diciembre 2009 - 03:47
Hola
Tal vez este enlace sea de ayuda
TBinImagen = Class(TRemotable) private FRespuesta: AnsiString; Fimagen: TByteDynArray; published property Respuesta: AnsiString read FRespuesta write Frespuesta; property imagen: TByteDynArray read Fimagen write Fimagen; End;
{ Invokable interfaces must derive from IInvokable } IIImagen = interface(IInvokable) ['{AF016C30-FE52-4C34-8C6B-1A636280CD92}'] function dameimagen(texto: ansistring): TBinImagen; stdcall; end;
function FileToByteArray( const FileName : string ) : TByteDynArray; const BLOCK_SIZE=1024; var BytesRead, BytesToWrite, Count : integer; F : FIle of Byte; pTemp : Pointer; begin AssignFile( F, FileName ); Reset(F); try Count := FileSize( F ); SetLength(Result, Count ); pTemp := @Result[0]; BytesRead := BLOCK_SIZE; while (BytesRead = BLOCK_SIZE ) do begin BytesToWrite := Min(Count, BLOCK_SIZE); BlockRead(F, pTemp^, BytesToWrite , BytesRead ); pTemp := Pointer(LongInt(pTemp) + BLOCK_SIZE); Count := Count-BytesRead; end; finally CloseFile( F ); end; end; function TIImagen.dameimagen(texto: ansistring): TBinImagen; begin Result := TBinImagen.Create; Result.imagen := FileToByteArray('C:\apache\htdocs\workflow\images\25407.jpg'); Result.Respuesta := texto; end;
require_once("lib/nusoap.php"); $oSoapClient = new soapclient("http://192.168.1.3/cgi-bin/imagen.exe/wsdl/IIImagen",true); $aRespuesta = $oSoapClient->call("dameimagen",$aParametros); $imgcode = $aRespuesta['TBinImagen']['imagen']; echo $imgcode;
Escrito 09 diciembre 2009 - 03:50
Escrito 03 febrero 2010 - 12:20
...Espero que sea de utilidad esta solución.
Escrito 03 febrero 2010 - 12:47
Amigo Poliburro..., ¿y guardarla? Eso es más interesante para mí en éste momento...
¿Se puede?
Escrito 03 febrero 2010 - 02:04
Escrito 03 febrero 2010 - 04:30
Afirmativo, y dejarla en un campo de una tabla en una base de datos.