Christian Schmitz schrieb:
Christian Leicht <[EMAIL PROTECTED]> wrote:

I found the PicturetoStringMBS() global method, but can´t find a "FiletoStringMBS" ? Is there a other name ?

First,  better use PictureToFileStringMBS.

And for a normal file:

dim b as binarystream
b=folderitem.openasbinarystream(false)
s=B.read(b.length)
return s

Gruß
Christian


Hello again,

i have now testet with PictureToFileStringMBS:

  bildstring = PictureToFileStringMBS(Window1.ImageWell1.Image,"qtif",1024)
Window1.EditField1.Text = bildstring // Der Bildstring wird auch angezeitgt und ist also auch vorhanden.

  form.value("funktion") = DefineEncoding("mainupdateinput",encodings.UTF8)
  form.Value("bildbinarystring") = bildstring

  Window1.HTTPSocketDetail.setFormData form
  Window1.HTTPSocketDetail.post main_script_url


The receiving bildbinarystring data posts to a file:

$path = "/bilder/test.jpg";
$modus ="w+";
if ( $fp = fopen ($path,$modus)){
fwrite($fp,$bildbinarystring);
};
fclose($fp);


There are more variables in the RB form on sending via httpsocket. And all of this arrive on php. The test.jpg File is written - but empty !?

If i ceck the bytesSent in sendprogress at httpsocket, the image data is transvered. Do i need a different encoding for the bildbinarystring as for a regular string ?

Thanx for help

Christian


PS.: My testpicture data is < 4kb an the apache is able to receive 256MB. Large Text(z.B. 2,8MB) in form(Dictionary)->HTTPSocket -> PHP is working.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to