Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 05-01-2007
rubenlalo rubenlalo is offline
Registrado
 
Registrado: ene 2007
Posts: 1
Poder: 0
rubenlalo Va por buen camino
Unhappy delphi a PHP

Buenas Buenas a todos del Club Delphi.

En alguna ocación encontre este codigo en el foro, este algoritmo recupera el archivo almacenado en forma de cadena de texto (Hexadecimal), lo que quisiera es que me ayuden a convertir el algoritmo a codigo PHP.
Código Delphi [-]
procedure TfrmCompanies.proStrToBin (img: String; Str: String);
var
  Stream: TFileStream;
  i: integer;
  b: integer;
begin
  Stream:= TFileStream.Create (img, fmCreate);
  try
    i:= 1;
    while i < Length (Str) do begin
      if TryStrToInt ('$' + Copy (Str, i, 2), b) then begin
        Stream.Write (b, 1);
      end else
        Exit;
      Inc (i, 2);
    end;
  finally
    Stream.Free;
  end;
end;

Gracias de antemano por su ayuda espero me puedan ayudar pronto
Bye bye....
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Consulta Delphi 6, Delphi 2005 y Delphi 2006 Leviatan Varios 6 18-08-2007 16:02:08


La franja horaria es GMT +2. Ahora son las 16:32:25.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi