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

Posted 17 November 2009 - 12:06 PM
Posted 17 November 2009 - 08:02 PM
Posted 09 December 2009 - 03:47 PM
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;
Posted 09 December 2009 - 03:50 PM
Posted 03 February 2010 - 12:20 PM
...Espero que sea de utilidad esta solución.
Posted 03 February 2010 - 12:47 PM
Amigo Poliburro..., ¿y guardarla? Eso es más interesante para mí en éste momento...
¿Se puede?
Posted 03 February 2010 - 02:04 PM
Posted 03 February 2010 - 04:30 PM
Afirmativo, y dejarla en un campo de una tabla en una base de datos.