Einzelnen Beitrag anzeigen

Der_Unwissende

Registriert seit: 13. Dez 2003
Ort: Berlin
1.756 Beiträge
 
#2

Re: TStringStream to BlobStream

  Alt 9. Jan 2007, 19:14
Hi,
these lines look a little redundant

Zitat von mr_fahrrad:
Delphi-Quellcode:
  blob.Position:=0;
  blob.Seek(0, soFromBeginning);
The both of them should do the same, but

Zitat von mr_fahrrad:
Delphi-Quellcode:
  blob.Position:=0;
  StringStream.Position := 0;
should do better (untested, I might be wrong)

Regards, Der Unwissende

[ADD]
If HD_source is non-nullable, you probably should ensure that getHTML returns a valid string (<> '')
[/ADD]
  Mit Zitat antworten Zitat