upload images

Posted by Admin on 13-Dec-2007 02:01

Hi all,

The problem is related to webspeed. The problem is

I want to upload image(s) from client machine to Unix server.

I do not know how can i do this. If anybody knows about it, please help me.

I am using Openedge 10.1B.

I am using the following code,

DEFINE VAR mFile AS MEMPTR NO-UNDO.
DEFINE VAR cfile AS CHAR NO-UNDO.
ASSIGN mFile = get-binary-data(input field-name).
IF mFile <> ? THEN DO:
ASSIGN cfile = "/home/user/a.jpg".
COPY-LOB FROM mFile TO FILE cFile NO-CONVERT.
END.

but it is not working properly.

Any idea would be appreciated.

Thomas Ronald

pic.png

All Replies

Posted by rstanciu on 14-Dec-2007 06:16

With webspeed only text file upload is supported, not binary.

(see: fileUploadDirectory)

If you want to upload images you can use the buildin apache php.

Ex:

Posted by kevin_saunders on 17-Dec-2007 03:08

Binary file uploads are supported in V10.1A and above.

This thread is closed