ok this is a new test ... so your Base64 converting function is good...
and more simple than taking the xml one...
so the problem come from psql ... what is the charset of your database ?
2009/11/26 Jean-Yves F. Barbier <12u...@gmail.com>:
> Charlie Reinl a écrit :
> ...
> Thanks Charlie, I'll
Charlie Reinl a écrit :
...
Thanks Charlie, I'll try it.
--
The world really isn't any worse. It's just that the news coverage
is so much better.
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 3
Am Donnerstag, den 26.11.2009, 14:32 +0100 schrieb Jean-Yves F. Barbier:
> Doriano Blengino a écrit :
> ...
>
> Of that I'm aware Doriano, THE PB is I need each and every byte of the picture
> in order to cast it to a Base64 to send it to postgresql.
> Or just escape some chars, or whatever proces
Doriano Blengino a écrit :
...
Ok, I found what was wrong: as there is no conversion between a string
and a picture, I must write the string to a file and read it as a picture,
the string was written as of WRITE #INstream, OUTstring, String.Len(OUTstring)
instead of: WRITE #INstre
Doriano Blengino a écrit :
...
Of that I'm aware Doriano, THE PB is I need each and every byte of the picture
in order to cast it to a Base64 to send it to postgresql.
Or just escape some chars, or whatever processing function I'll further need;
because I know there are base64 functions in gb.xml
Jean-Yves F. Barbier ha scritto:
> Hi,
>
> Here is a (very big) PB:
>
> ...
> ' Get picture /path/name.ext
> INfile = FileChooser1.SelectedPath
>
> FileSize = Stat(FileChooser1.SelectedPath).Size
>
> ' Read file into a string
> INstream = OPEN INfile FOR INPUT
> ' READ #INstream,
Hi,
Here is a (very big) PB:
...
' Get picture /path/name.ext
INfile = FileChooser1.SelectedPath
FileSize = Stat(FileChooser1.SelectedPath).Size
' Read file into a string
INstream = OPEN INfile FOR INPUT
' READ #INstream, INstring, Lof(INstream) ' NA: Returns 238 bytes
RE