Re: Data Abstract Blob Error



If you're working with Delphi, maybe this will help ...

I don't know anything about RemObjects, but if you are using the
"Transliterate=True" option when working with Blob Streams (this is the
default option for most Blob Stream implementations), you will probably just
need to turn Transliterate to FALSE before using the stream and everything
should be ok, as long as you're using normal strings (not WideString or
UTF-Strings).

The Transliterate option is there to convert international characters
to-and-from local system's codepage, which ends up corrupting your binary
data if reconstructed on a machine with different codepage. I doubt that
your problem has something to do with the fact that RemObject might be using
Strings to store the data, since in Delphi, Strings are stored without any
transformation (same as an array of char or byte).

Naturaly, if you are storing data inside a database, you should use a field
type which doesn't make any transformations (for example, CLOB in Oracle
makes data transformations depending on character set, which wouldn't be
good for your purpose).

Btw ... Java works with Unicode strings (not like Delphi) and if you were
working with Java, you would have to store your data as an array of bytes to
avoid getting corrupted results.

Best Regards,
Danijel Tkalcec
www.realthinclient.com

"Rol" <m.solv@xxxxxxxxxxxxxx> wrote in message
news:42c3a732@xxxxxxxxxxxxxxxxxxxxxxxxx
>
>
> Hi all ,
>
>
> We developp an application with DataAbstract an deploy it on chinese
> systems. Unfortunatly it seems that binary data is corrupted
> if localization of writer and reader are different (because binary data is
> treated as astring).
> This is a real problem for deploying international applications with
> DataAbstract layer.
>
> Is anyone has been confronted to this issue and has a solution to this
>
> Thanks,
>
> Jean-Laurent
>


.



Relevant Pages

  • TeamB, Borland, admit obvious
    ... Exhibit A: From Delphi 7 help. ... strings as using the Concat function: ... The plus operator is faster than Concat. ...
    (borland.public.delphi.non-technical)
  • Delphi 2009
    ... I upgraded to Delphi 2009 today, and I thought some potential CodeGear customers might like an opinion of someone with a lot of code. ... That failed miserably because MS's .Net package wouldn't install (despite it being a MS OS in an MS virtual machine... ... The only things that needed fixing were where the client and server programs communicated strings over a named pipe - they just had to be touched up to realize strings were in unicode - which is what I wanted anyways. ...
    (alt.comp.lang.borland-delphi)
  • Re: Delphi 2005 Truly Unsuable for Your Testing and QA Too?
    ... > anti-Delphi statements are probably having on sales of RemObjects' Delphi ... > attempts to QA and test RemObjects products in Delphi 2005 as well. ... In the first case, your prior unusabilitoy statement ...
    (borland.public.delphi.non-technical)
  • Re: Cross platform password string encryption
    ... I happen to have solved it now, I ended up using the Delphi LockBox ... Also to those "posters" suggesting I use other languages, ... The consuming code doesn't use the library code in the right way. ... The consuming code is trying to pass strings to the routines and ...
    (sci.crypt)
  • Re: Win32 Content aat the Conference?
    ... > Lauchlan M wrote: ... applicable) in Delphi for Win 32. ... third-party solution providers such as RemObjects, NexusDB, DeveloperExpress ... so want _practical_ _useful_ streams in that (hence my ...
    (borland.public.delphi.non-technical)

Quantcast